Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001447/0.001447, allocations: 96.3 kB / 21.73 MB, free: 2.703 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001353/0.001353, allocations: 164.3 kB / 25.02 MB, free: 8.953 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.508/1.508, allocations: 158.6 MB / 186.8 MB, free: 2.914 MB / 170.7 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_3.2.3_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_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 250.3 MB, free: 7.848 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.556e-05/2.721e-05, allocations: 2.312 kB / 250.3 MB, free: 7.844 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.02113/0.02116, allocations: 14.48 MB / 264.8 MB, free: 9.297 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0119/0.03305, allocations: 6.231 MB / 271.1 MB, free: 3.051 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008133/0.03387, allocations: 31.75 kB / 271.1 MB, free: 3.02 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001047/0.03491, allocations: 329.8 kB / 271.4 MB, free: 2.695 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003358/0.03827, allocations: 1.126 MB / 272.5 MB, free: 1.562 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00518/0.04345, allocations: 1.909 MB / 274.4 MB, free: 15.65 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003697/0.04715, allocations: 2.169 MB / 276.6 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001136/0.04829, allocations: 0.5417 MB / 277.2 MB, free: 12.91 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002098/0.05038, allocations: 1.056 MB / 278.2 MB, free: 11.86 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001355/0.05174, allocations: 0.7753 MB / 279 MB, free: 11.08 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000161/0.0519, allocations: 80 kB / 279.1 MB, free: 11 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002466/0.05437, allocations: 1.014 MB / 280.1 MB, free: 9.984 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004744/0.05484, allocations: 346.9 kB / 280.4 MB, free: 9.645 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005328/0.05537, allocations: 331.3 kB / 280.7 MB, free: 9.32 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003782/0.05915, allocations: 1.99 MB / 282.7 MB, free: 7.324 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.05916, allocations: 0 / 282.7 MB, free: 7.324 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.704e-06/0.05916, allocations: 0 / 282.7 MB, free: 7.324 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.452e-05/0.05918, allocations: 0 / 282.7 MB, free: 7.324 MB / 266.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.003397/0.06257, allocations: 1.212 MB / 283.9 MB, free: 6.078 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.063e-05/0.06263, allocations: 15.98 kB / 284 MB, free: 6.062 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005554/0.06319, allocations: 152.2 kB / 284.1 MB, free: 5.914 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001238/0.06443, allocations: 0.6101 MB / 284.7 MB, free: 5.281 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001997/0.06463, allocations: 156.1 kB / 284.9 MB, free: 5.102 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001464/0.06477, allocations: 59.98 kB / 284.9 MB, free: 5.043 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001929/0.0667, allocations: 1.176 MB / 286.1 MB, free: 3.773 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.199e-05/0.06672, allocations: 0 / 286.1 MB, free: 3.773 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.099e-05/0.06681, allocations: 23.98 kB / 286.1 MB, free: 3.75 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.439e-05/0.06691, allocations: 53.27 kB / 286.2 MB, free: 3.699 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00159/0.0685, allocations: 0.8327 MB / 287 MB, free: 2.867 MB / 266.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.006284/0.07478, allocations: 2.649 MB / 289.7 MB, free: 168 kB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001215/0.076, allocations: 0.6222 MB / 290.3 MB, free: 15.53 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00065/0.07665, allocations: 338.2 kB / 290.6 MB, free: 15.2 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00296/0.07961, allocations: 1.208 MB / 291.8 MB, free: 13.97 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.74e-05/0.07966, allocations: 39.06 kB / 291.9 MB, free: 13.93 MB / 282.7 MB Notification: Performance of pre-optimization done (n=56): time 1.914e-06/0.07967, allocations: 0 / 291.9 MB, free: 13.93 MB / 282.7 MB Notification: Performance of matching and sorting (n=66): time 0.007983/0.08765, allocations: 2.698 MB / 294.6 MB, free: 11.2 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.53e-05/0.08772, allocations: 89.77 kB / 294.6 MB, free: 11.09 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008544/0.08858, allocations: 0.5535 MB / 295.2 MB, free: 10.52 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.788e-05/0.08866, allocations: 41.7 kB / 295.2 MB, free: 10.48 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003489/0.08901, allocations: 356.7 kB / 295.6 MB, free: 10.12 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002695/0.08928, allocations: 238 kB / 295.8 MB, free: 9.891 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003127/0.08959, allocations: 146.6 kB / 296 MB, free: 9.742 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0003749/0.08996, allocations: 382.7 kB / 296.3 MB, free: 9.359 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007276/0.09069, allocations: 368.6 kB / 296.7 MB, free: 8.996 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009173/0.09161, allocations: 0.5519 MB / 297.2 MB, free: 8.379 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001592/0.0932, allocations: 0.8642 MB / 298.1 MB, free: 7.457 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.0932, allocations: 0 / 298.1 MB, free: 7.457 MB / 282.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002441/0.09564, allocations: 1.185 MB / 299.3 MB, free: 6.262 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.184e-05/0.09566, allocations: 4 kB / 299.3 MB, free: 6.258 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.347e-05/0.09568, allocations: 4 kB / 299.3 MB, free: 6.254 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001493/0.09717, allocations: 452.7 kB / 299.7 MB, free: 5.809 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007207/0.09789, allocations: 167.7 kB / 299.9 MB, free: 5.645 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001515/0.09941, allocations: 1.025 MB / 300.9 MB, free: 4.594 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005892/0.1, allocations: 32.02 kB / 301 MB, free: 4.562 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.556e-05/0.1001, allocations: 32 kB / 301 MB, free: 4.531 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001/0.1011, allocations: 0.5331 MB / 301.5 MB, free: 3.992 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008909/0.102, allocations: 0.5372 MB / 302.1 MB, free: 3.387 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001524/0.1035, allocations: 0.8493 MB / 302.9 MB, free: 2.473 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.086e-06/0.1035, allocations: 0 / 302.9 MB, free: 2.473 MB / 282.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.00244/0.1059, allocations: 1.126 MB / 304 MB, free: 1.336 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.106, allocations: 8 kB / 304.1 MB, free: 1.328 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.106, allocations: 4 kB / 304.1 MB, free: 1.324 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008484/0.1068, allocations: 320.8 kB / 304.4 MB, free: 1.008 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007214/0.1075, allocations: 159.8 kB / 304.5 MB, free: 0.8516 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001384/0.1089, allocations: 0.911 MB / 305.4 MB, free: 15.92 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006456/0.1096, allocations: 39.95 kB / 305.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.264e-05/0.1096, allocations: 28 kB / 305.5 MB, free: 15.85 MB / 298.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.0003876/0.11, allocations: 228.1 kB / 305.7 MB, free: 15.62 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000244/0.1103, allocations: 95.53 kB / 305.8 MB, free: 15.53 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002349/0.1126, allocations: 1.071 MB / 306.9 MB, free: 14.45 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.255e-05/0.1126, allocations: 8 kB / 306.9 MB, free: 14.44 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.75e-06/0.1126, allocations: 0 / 306.9 MB, free: 14.44 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.652e-05/0.1127, allocations: 7.922 kB / 306.9 MB, free: 14.43 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003602/0.1163, allocations: 1.774 MB / 308.7 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.1163, allocations: 0 / 308.7 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000634/0.1169, allocations: 119.9 kB / 308.8 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001402/0.1183, allocations: 452.4 kB / 309.2 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.815e-05/0.1184, allocations: 23.98 kB / 309.3 MB, free: 12.03 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001625/0.12, allocations: 1.028 MB / 310.3 MB, free: 10.97 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.12, allocations: 0 / 310.3 MB, free: 10.97 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003002/0.123, allocations: 1.613 MB / 311.9 MB, free: 9.344 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000466/0.1235, allocations: 155.5 kB / 312.1 MB, free: 9.191 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001177/0.1236, allocations: 12 kB / 312.1 MB, free: 9.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005919/0.1242, allocations: 35.97 kB / 312.1 MB, free: 9.145 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001729/0.1244, allocations: 56.55 kB / 312.2 MB, free: 9.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.021e-05/0.1244, allocations: 27.98 kB / 312.2 MB, free: 9.062 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005814/0.125, allocations: 378.8 kB / 312.6 MB, free: 8.695 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.125, allocations: 0 / 312.6 MB, free: 8.695 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001786/0.1268, allocations: 0.5848 MB / 313.1 MB, free: 8.109 MB / 298.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.001282/0.1281, allocations: 0.5213 MB / 313.7 MB, free: 7.574 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.003334/0.1314, allocations: 1.325 MB / 315 MB, free: 6.254 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.1314, allocations: 0 / 315 MB, free: 6.254 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001097/0.1325, allocations: 448 kB / 315.4 MB, free: 5.816 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001832/0.1343, allocations: 373.2 kB / 315.8 MB, free: 5.457 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003777/0.1381, allocations: 1.622 MB / 317.4 MB, free: 3.809 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006298/0.1388, allocations: 400.5 kB / 317.8 MB, free: 3.391 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0009989/0.1398, allocations: 289.9 kB / 318.1 MB, free: 3.105 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002196/0.14, allocations: 76.41 kB / 318.2 MB, free: 3.031 MB / 298.7 MB Notification: Performance of SimCode: time 1.092e-06/0.14, allocations: 4 kB / 318.2 MB, free: 3.027 MB / 298.7 MB Notification: Performance of Templates: time 0.04075/0.1807, allocations: 22 MB / 340.2 MB, free: 13.01 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 5.561001823982224]