Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.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.001732/0.001732, allocations: 75.34 kB / 21.24 MB, free: 0.5469 MB / 14.72 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.001985/0.001985, allocations: 157.7 kB / 24.5 MB, free: 3.723 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.429/1.429, allocations: 177.2 MB / 204.9 MB, free: 9.02 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001606/0.001606, allocations: 50.89 kB / 325.5 MB, free: 264 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09172/0.09332, allocations: 53.34 MB / 378.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.005186/0.09851, allocations: 2.561 MB / 381.4 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001652/0.1002, allocations: 0.8139 MB / 382.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002132/0.1004, allocations: 0 / 382.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002926/0.1007, allocations: 67.44 kB / 382.3 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003225/0.101, allocations: 138.9 kB / 382.5 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002277/0.1012, allocations: 95.81 kB / 382.6 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005599/0.1018, allocations: 442.3 kB / 383 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001564/0.1019, allocations: 63.89 kB / 383 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001799/0.1021, allocations: 163.5 kB / 383.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002454/0.1024, allocations: 159.2 kB / 383.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.361e-05/0.1024, allocations: 36 kB / 383.4 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.121e-05/0.1025, allocations: 40 kB / 383.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.617e-05/0.1026, allocations: 71.75 kB / 383.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001823/0.1028, allocations: 159.3 kB / 383.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004742/0.1032, allocations: 450.2 kB / 384.1 MB, free: 10.44 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.1032, allocations: 0 / 384.1 MB, free: 10.44 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1032, allocations: 0 / 384.1 MB, free: 10.44 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.1032, allocations: 0 / 384.1 MB, free: 10.44 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001096/0.1043, allocations: 0.608 MB / 384.7 MB, free: 9.797 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.373e-05/0.1044, allocations: 12.03 kB / 384.7 MB, free: 9.785 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.657e-05/0.1045, allocations: 40.7 kB / 384.8 MB, free: 9.746 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004373/0.1049, allocations: 254.4 kB / 385 MB, free: 9.469 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001277/0.105, allocations: 98.16 kB / 385.1 MB, free: 9.355 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.515e-05/0.1051, allocations: 24.38 kB / 385.1 MB, free: 9.332 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000762/0.1058, allocations: 0.6742 MB / 385.8 MB, free: 8.527 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.662e-05/0.1058, allocations: 0 / 385.8 MB, free: 8.527 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.96e-05/0.1059, allocations: 8 kB / 385.8 MB, free: 8.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.826e-06/0.1059, allocations: 4 kB / 385.8 MB, free: 8.516 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004317/0.1063, allocations: 197.9 kB / 386 MB, free: 8.324 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001354/0.1077, allocations: 0.6739 MB / 386.7 MB, free: 7.617 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005791/0.1082, allocations: 259.6 kB / 386.9 MB, free: 7.355 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000222/0.1085, allocations: 104.8 kB / 387 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.416e-05/0.1085, allocations: 8 kB / 387 MB, free: 7.242 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.659e-05/0.1085, allocations: 38.56 kB / 387.1 MB, free: 7.195 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.472e-06/0.1085, allocations: 0 / 387.1 MB, free: 7.195 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.001077/0.1096, allocations: 414.2 kB / 387.5 MB, free: 6.781 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001823/0.1098, allocations: 316.4 kB / 387.8 MB, free: 6.398 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003149/0.1101, allocations: 288.2 kB / 388.1 MB, free: 6.109 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.695e-05/0.1102, allocations: 33.7 kB / 388.1 MB, free: 6.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001318/0.1103, allocations: 168.8 kB / 388.3 MB, free: 5.902 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.155e-05/0.1104, allocations: 107.1 kB / 388.4 MB, free: 5.797 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001102/0.1105, allocations: 69.69 kB / 388.5 MB, free: 5.723 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.1106, allocations: 342.8 kB / 388.8 MB, free: 5.379 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002339/0.1109, allocations: 117.7 kB / 388.9 MB, free: 5.258 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005201/0.1114, allocations: 495.9 kB / 389.4 MB, free: 4.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004869/0.1119, allocations: 267.5 kB / 389.6 MB, free: 4.383 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.1119, allocations: 0 / 389.6 MB, free: 4.383 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0007021/0.1126, allocations: 399.5 kB / 390 MB, free: 3.973 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.879e-05/0.1126, allocations: 36.45 kB / 390.1 MB, free: 3.934 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.411e-06/0.1126, allocations: 0 / 390.1 MB, free: 3.934 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001473/0.1128, allocations: 36.84 kB / 390.1 MB, free: 3.895 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001067/0.1138, allocations: 167.8 kB / 390.3 MB, free: 3.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003846/0.1177, allocations: 2.972 MB / 393.2 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002793/0.118, allocations: 31.88 kB / 393.3 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.498e-05/0.118, allocations: 15.98 kB / 393.3 MB, free: 0.5078 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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 {(3,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001848/0.1182, allocations: 153.8 kB / 393.4 MB, free: 356 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.374e-05/0.1183, allocations: 39.75 kB / 393.5 MB, free: 316 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.729e-05/0.1184, allocations: 39.14 kB / 393.5 MB, free: 276 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.818e-06/0.1184, allocations: 4 kB / 393.5 MB, free: 272 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.033e-06/0.1184, allocations: 0 / 393.5 MB, free: 272 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008125/0.1192, allocations: 0.6461 MB / 394.2 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003726/0.1195, allocations: 269.1 kB / 394.4 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.1195, allocations: 0 / 394.4 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001344/0.1209, allocations: 203.7 kB / 394.6 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.131e-05/0.121, allocations: 24.84 kB / 394.7 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.99e-05/0.121, allocations: 7.938 kB / 394.7 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003309/0.1243, allocations: 2.793 MB / 397.5 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1243, allocations: 0 / 397.5 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008823/0.1252, allocations: 0.5134 MB / 398 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001425/0.1253, allocations: 59.75 kB / 398 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.58e-05/0.1254, allocations: 15.88 kB / 398 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002655/0.1256, allocations: 19.98 kB / 398.1 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.151e-05/0.1257, allocations: 23.95 kB / 398.1 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.797e-05/0.1257, allocations: 8 kB / 398.1 MB, free: 11.33 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002177/0.1259, allocations: 199.1 kB / 398.3 MB, free: 11.14 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1259, allocations: 0 / 398.3 MB, free: 11.14 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004335/0.1264, allocations: 104 kB / 398.4 MB, free: 11.04 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (openTank1.m,openTank1.H,openTank2.m,openTank2.H) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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 {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001457/0.1265, allocations: 118.4 kB / 398.5 MB, free: 10.91 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001635/0.1282, allocations: 0.5542 MB / 399.1 MB, free: 10.33 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.1282, allocations: 0 / 399.1 MB, free: 10.33 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001457/0.1296, allocations: 390.3 kB / 399.4 MB, free: 9.934 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005057/0.1301, allocations: 88.53 kB / 399.5 MB, free: 9.848 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001757/0.1319, allocations: 0.8631 MB / 400.4 MB, free: 8.953 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001735/0.1321, allocations: 169.6 kB / 400.6 MB, free: 8.766 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001449/0.1322, allocations: 38.95 kB / 400.6 MB, free: 8.727 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.331e-05/0.1323, allocations: 28.5 kB / 400.6 MB, free: 8.699 MB / 366.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1323, allocations: 3.938 kB / 400.6 MB, free: 8.695 MB / 366.1 MB Notification: Performance of Templates: time 0.01283/0.1451, allocations: 6.712 MB / 407.3 MB, free: 2.156 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.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: 4.597897860920057]