Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000847/0.000847, allocations: 84 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003663/0.003663, allocations: 153.2 kB / 24.69 MB, free: 9.434 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8454/0.8454, allocations: 173.4 MB / 201.2 MB, free: 9.422 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks") translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.372e-06/1.372e-06, allocations: 0 / 319.7 MB, free: 5.867 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.688e-05/1.825e-05, allocations: 6.219 kB / 319.7 MB, free: 5.859 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.009586/0.009604, allocations: 14.45 MB / 334.1 MB, free: 7.336 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005253/0.01486, allocations: 6.282 MB / 340.4 MB, free: 1.035 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002809/0.01514, allocations: 31.69 kB / 340.4 MB, free: 1.004 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005921/0.01573, allocations: 333.8 kB / 340.8 MB, free: 0.6758 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001508/0.01724, allocations: 1.134 MB / 341.9 MB, free: 15.54 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002183/0.01942, allocations: 1.909 MB / 343.8 MB, free: 13.63 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.00135/0.02077, allocations: 2.17 MB / 346 MB, free: 11.46 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000485/0.02126, allocations: 0.5095 MB / 346.5 MB, free: 10.93 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008701/0.02213, allocations: 1.056 MB / 347.5 MB, free: 9.875 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007853/0.02291, allocations: 0.7792 MB / 348.3 MB, free: 9.094 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 8.328e-05/0.02299, allocations: 83.94 kB / 348.4 MB, free: 9.012 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001131/0.02413, allocations: 1.014 MB / 349.4 MB, free: 7.996 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002059/0.02433, allocations: 338.9 kB / 349.8 MB, free: 7.664 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002234/0.02456, allocations: 335.2 kB / 350.1 MB, free: 7.336 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001563/0.02612, allocations: 1.987 MB / 352.1 MB, free: 5.344 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.424e-06/0.02612, allocations: 0 / 352.1 MB, free: 5.344 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.02612, allocations: 0 / 352.1 MB, free: 5.344 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.015e-06/0.02613, allocations: 0 / 352.1 MB, free: 5.344 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.001554/0.02768, allocations: 1.212 MB / 353.3 MB, free: 4.098 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.352e-05/0.02772, allocations: 8.922 kB / 353.3 MB, free: 4.09 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001924/0.02791, allocations: 104.4 kB / 353.4 MB, free: 3.988 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006368/0.02855, allocations: 0.5672 MB / 354 MB, free: 3.395 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.702e-05/0.02864, allocations: 156.1 kB / 354.1 MB, free: 3.219 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.121e-05/0.02871, allocations: 55.98 kB / 354.2 MB, free: 3.164 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009836/0.0297, allocations: 1.176 MB / 355.3 MB, free: 1.895 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.675e-05/0.02971, allocations: 3.984 kB / 355.3 MB, free: 1.891 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000202/0.02992, allocations: 23.98 kB / 355.4 MB, free: 1.867 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.908e-05/0.02997, allocations: 53.28 kB / 355.4 MB, free: 1.816 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008546/0.03082, allocations: 0.8365 MB / 356.3 MB, free: 0.9805 MB / 314.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002947/0.03377, allocations: 2.629 MB / 358.9 MB, free: 14.3 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006532/0.03442, allocations: 0.6297 MB / 359.5 MB, free: 13.66 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003277/0.03475, allocations: 350.1 kB / 359.9 MB, free: 13.31 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001324/0.03607, allocations: 1.193 MB / 361 MB, free: 12.1 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.644e-05/0.0361, allocations: 43.05 kB / 361.1 MB, free: 12.05 MB / 330.7 MB Notification: Performance of pre-optimization done (n=56): time 1.623e-06/0.0361, allocations: 0 / 361.1 MB, free: 12.05 MB / 330.7 MB Notification: Performance of matching and sorting (n=66): time 0.003903/0.04, allocations: 2.682 MB / 363.8 MB, free: 9.34 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.164e-05/0.04005, allocations: 85.77 kB / 363.9 MB, free: 9.238 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004003/0.04045, allocations: 0.5496 MB / 364.4 MB, free: 8.684 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.228e-05/0.04049, allocations: 41.64 kB / 364.4 MB, free: 8.637 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001628/0.04065, allocations: 364.7 kB / 364.8 MB, free: 8.273 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001188/0.04077, allocations: 226 kB / 365 MB, free: 8.051 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001563/0.04093, allocations: 158.5 kB / 365.2 MB, free: 7.887 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002326/0.04116, allocations: 386.6 kB / 365.6 MB, free: 7.5 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003844/0.04154, allocations: 372.6 kB / 365.9 MB, free: 7.133 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004478/0.04199, allocations: 0.5442 MB / 366.5 MB, free: 6.52 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008/0.04279, allocations: 0.8603 MB / 367.3 MB, free: 5.598 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.04279, allocations: 0 / 367.3 MB, free: 5.598 MB / 330.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001188/0.04398, allocations: 1.149 MB / 368.5 MB, free: 4.438 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.044, allocations: 8.562 kB / 368.5 MB, free: 4.43 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.056e-06/0.04401, allocations: 4 kB / 368.5 MB, free: 4.426 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007257/0.04473, allocations: 456.4 kB / 368.9 MB, free: 3.977 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003287/0.04506, allocations: 155.8 kB / 369.1 MB, free: 3.824 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008862/0.04595, allocations: 1.025 MB / 370.1 MB, free: 2.773 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000243/0.04619, allocations: 27.98 kB / 370.1 MB, free: 2.746 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.721e-05/0.04624, allocations: 39.98 kB / 370.2 MB, free: 2.707 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005145/0.04675, allocations: 0.5292 MB / 370.7 MB, free: 2.176 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004371/0.04719, allocations: 0.5403 MB / 371.2 MB, free: 1.57 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007604/0.04795, allocations: 0.8416 MB / 372.1 MB, free: 0.668 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.024e-06/0.04795, allocations: 4 kB / 372.1 MB, free: 0.6641 MB / 330.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001115/0.04907, allocations: 1.095 MB / 373.2 MB, free: 15.56 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.857e-06/0.04907, allocations: 4 kB / 373.2 MB, free: 15.55 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.998e-06/0.04908, allocations: 4 kB / 373.2 MB, free: 15.55 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003951/0.04947, allocations: 321.1 kB / 373.5 MB, free: 15.23 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000311/0.04978, allocations: 163.8 kB / 373.7 MB, free: 15.07 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005876/0.05037, allocations: 0.9113 MB / 374.6 MB, free: 14.14 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002284/0.0506, allocations: 31.98 kB / 374.6 MB, free: 14.11 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.965e-05/0.05064, allocations: 35.92 kB / 374.6 MB, free: 14.07 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (tank2.inFlow[1],tank2.regularFlow[1],tank1.inFlow[1],tank1.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,9)} Notification: Performance of prepare postOptimizeDAE: time 0.000144/0.05078, allocations: 224.1 kB / 374.9 MB, free: 13.84 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.942e-05/0.05086, allocations: 71.67 kB / 374.9 MB, free: 13.77 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001168/0.05203, allocations: 1.079 MB / 376 MB, free: 12.68 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.05204, allocations: 8 kB / 376 MB, free: 12.67 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.05204, allocations: 0 / 376 MB, free: 12.67 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.293e-06/0.05205, allocations: 11.86 kB / 376 MB, free: 12.66 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001898/0.05395, allocations: 1.778 MB / 377.8 MB, free: 10.84 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.05395, allocations: 0 / 377.8 MB, free: 10.84 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000287/0.05424, allocations: 119.8 kB / 377.9 MB, free: 10.72 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006239/0.05486, allocations: 447.8 kB / 378.4 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.924e-05/0.0549, allocations: 27.92 kB / 378.4 MB, free: 10.26 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006919/0.05559, allocations: 1.025 MB / 379.4 MB, free: 9.207 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.05559, allocations: 0 / 379.4 MB, free: 9.207 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001491/0.05708, allocations: 1.589 MB / 381 MB, free: 7.598 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002073/0.05729, allocations: 159.5 kB / 381.2 MB, free: 7.441 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.591e-05/0.05735, allocations: 8 kB / 381.2 MB, free: 7.434 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002622/0.05761, allocations: 35.97 kB / 381.2 MB, free: 7.398 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.609e-05/0.05769, allocations: 56.55 kB / 381.3 MB, free: 7.344 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.063e-05/0.05773, allocations: 35.97 kB / 381.3 MB, free: 7.309 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002733/0.05801, allocations: 370.8 kB / 381.7 MB, free: 6.949 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.05801, allocations: 0 / 381.7 MB, free: 6.949 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009356/0.05894, allocations: 0.5887 MB / 382.2 MB, free: 6.359 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006791/0.05962, allocations: 0.5173 MB / 382.8 MB, free: 5.832 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00173/0.06135, allocations: 1.33 MB / 384.1 MB, free: 4.504 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.06136, allocations: 0 / 384.1 MB, free: 4.504 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004933/0.06185, allocations: 435.5 kB / 384.5 MB, free: 4.082 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008392/0.06269, allocations: 356 kB / 384.9 MB, free: 3.746 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001923/0.06461, allocations: 1.645 MB / 386.5 MB, free: 2.062 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002436/0.06485, allocations: 404.4 kB / 386.9 MB, free: 1.641 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001636/0.06502, allocations: 84.47 kB / 387 MB, free: 1.559 MB / 346.7 MB Notification: Performance of SimCode: time 8.72e-07/0.06502, allocations: 0 / 387 MB, free: 1.559 MB / 346.7 MB Notification: Performance of Templates: time 0.0143/0.07932, allocations: 18.94 MB / 405.9 MB, free: 14.69 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.887248554266989]