Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.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.001411/0.001411, allocations: 80.39 kB / 22.21 MB, free: 2.285 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.001766/0.001766, allocations: 168.3 kB / 25.61 MB, free: 8.586 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.032/1.032, allocations: 158.6 MB / 187.5 MB, free: 2.793 MB / 170.7 MB " [Timeout remaining time 179] 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.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks") translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.413e-06/1.413e-06, allocations: 0 / 251.5 MB, free: 7.266 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.91e-05/2.051e-05, allocations: 2.312 kB / 251.5 MB, free: 7.262 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.008765/0.008786, allocations: 10.98 MB / 262.4 MB, free: 12.21 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007972/0.01676, allocations: 6.776 MB / 269.2 MB, free: 5.422 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001281/0.01804, allocations: 59.5 kB / 269.3 MB, free: 5.363 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009277/0.01897, allocations: 417.2 kB / 269.7 MB, free: 4.953 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003121/0.02209, allocations: 1.764 MB / 271.4 MB, free: 3.18 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004552/0.02664, allocations: 2.849 MB / 274.3 MB, free: 332 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.005059/0.0317, allocations: 4.051 MB / 278.3 MB, free: 12.26 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001687/0.03339, allocations: 1.099 MB / 279.4 MB, free: 11.14 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00298/0.03637, allocations: 2.074 MB / 281.5 MB, free: 9.062 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002102/0.03847, allocations: 1.547 MB / 283.1 MB, free: 7.512 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002662/0.03873, allocations: 160 kB / 283.2 MB, free: 7.355 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001851/0.04058, allocations: 0.9713 MB / 284.2 MB, free: 6.383 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005713/0.04116, allocations: 0.6738 MB / 284.9 MB, free: 5.707 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007508/0.04191, allocations: 0.6314 MB / 285.5 MB, free: 5.074 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003063/0.04497, allocations: 2.294 MB / 287.8 MB, free: 2.773 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.04498, allocations: 0 / 287.8 MB, free: 2.773 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.442e-06/0.04498, allocations: 4 kB / 287.8 MB, free: 2.77 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.727e-05/0.045, allocations: 0 / 287.8 MB, free: 2.77 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.003924/0.04893, allocations: 2.035 MB / 289.8 MB, free: 0.6875 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.507e-05/0.04897, allocations: 19.92 kB / 289.9 MB, free: 0.668 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005964/0.04957, allocations: 283.7 kB / 290.1 MB, free: 400 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001418/0.05099, allocations: 0.9832 MB / 291.1 MB, free: 15.38 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000166/0.05115, allocations: 252.2 kB / 291.4 MB, free: 15.09 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001751/0.05133, allocations: 108 kB / 291.5 MB, free: 14.99 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001594/0.05292, allocations: 1.44 MB / 292.9 MB, free: 13.37 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.403e-05/0.05295, allocations: 3.953 kB / 292.9 MB, free: 13.37 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001059/0.05305, allocations: 47.95 kB / 293 MB, free: 13.32 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001313/0.05318, allocations: 109.9 kB / 293.1 MB, free: 13.21 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001063/0.05425, allocations: 0.5952 MB / 293.7 MB, free: 12.59 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006488/0.06074, allocations: 3.958 MB / 297.6 MB, free: 8.559 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008388/0.06157, allocations: 0.5763 MB / 298.2 MB, free: 7.973 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003912/0.06197, allocations: 250.5 kB / 298.4 MB, free: 7.727 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002785/0.06475, allocations: 1.744 MB / 300.2 MB, free: 5.961 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.408e-05/0.06478, allocations: 58.39 kB / 300.2 MB, free: 5.895 MB / 282.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004827/0.06527, allocations: 179.3 kB / 300.4 MB, free: 5.719 MB / 282.7 MB Notification: Performance of pre-optimization done (n=97): time 2.686e-06/0.06527, allocations: 0 / 300.4 MB, free: 5.719 MB / 282.7 MB Notification: Performance of matching and sorting (n=112): time 0.008373/0.07364, allocations: 2.897 MB / 303.3 MB, free: 2.793 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000309/0.07395, allocations: 141.5 kB / 303.4 MB, free: 2.625 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008443/0.0748, allocations: 0.9256 MB / 304.4 MB, free: 1.68 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.809e-05/0.07487, allocations: 45.7 kB / 304.4 MB, free: 1.629 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004094/0.07528, allocations: 0.6941 MB / 305.1 MB, free: 0.9258 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002854/0.07557, allocations: 412.5 kB / 305.5 MB, free: 0.5195 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000378/0.07595, allocations: 301 kB / 305.8 MB, free: 224 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.07607, allocations: 480.8 kB / 306.3 MB, free: 15.75 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003927/0.07647, allocations: 211.5 kB / 306.5 MB, free: 15.54 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006733/0.07714, allocations: 0.7741 MB / 307.3 MB, free: 14.55 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001103/0.07824, allocations: 0.9401 MB / 308.2 MB, free: 13.43 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.234e-06/0.07825, allocations: 4 kB / 308.2 MB, free: 13.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.001869/0.08012, allocations: 1.144 MB / 309.3 MB, free: 12.27 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.428e-05/0.08014, allocations: 11.94 kB / 309.4 MB, free: 12.26 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.436e-05/0.08016, allocations: 8 kB / 309.4 MB, free: 12.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00359/0.08375, allocations: 0.9324 MB / 310.3 MB, free: 11.31 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001048/0.0848, allocations: 291.5 kB / 310.6 MB, free: 11.03 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001204/0.086, allocations: 1.144 MB / 311.7 MB, free: 9.852 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007074/0.08671, allocations: 55.92 kB / 311.8 MB, free: 9.797 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000105/0.08681, allocations: 55.97 kB / 311.8 MB, free: 9.742 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005878/0.0874, allocations: 346.7 kB / 312.2 MB, free: 9.398 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006713/0.08807, allocations: 0.7936 MB / 313 MB, free: 8.383 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001099/0.08917, allocations: 0.9587 MB / 313.9 MB, free: 7.23 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.155e-06/0.08918, allocations: 0 / 313.9 MB, free: 7.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.001796/0.09098, allocations: 1.132 MB / 315.1 MB, free: 6.086 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.09099, allocations: 11.78 kB / 315.1 MB, free: 6.078 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.244e-05/0.09101, allocations: 12 kB / 315.1 MB, free: 6.066 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003161/0.09417, allocations: 0.7916 MB / 315.9 MB, free: 5.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007824/0.09495, allocations: 299.5 kB / 316.2 MB, free: 4.977 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001247/0.0962, allocations: 1.069 MB / 317.2 MB, free: 3.875 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007404/0.09694, allocations: 59.92 kB / 317.3 MB, free: 3.816 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001025/0.09704, allocations: 55.97 kB / 317.4 MB, free: 3.762 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 6 (tank3.inFlow[1],tank3.regularFlow[1],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 (156): * Single equations (assignments): 155 * 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 {(8,18)} Notification: Performance of prepare postOptimizeDAE: time 0.0003508/0.09739, allocations: 359.7 kB / 317.7 MB, free: 3.402 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002605/0.09765, allocations: 171.2 kB / 317.9 MB, free: 3.234 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002144/0.0998, allocations: 1.105 MB / 319 MB, free: 2.117 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.156e-05/0.09981, allocations: 12 kB / 319 MB, free: 2.105 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.09981, allocations: 4 kB / 319 MB, free: 2.102 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.07e-05/0.09982, allocations: 7.969 kB / 319 MB, free: 2.094 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002881/0.1027, allocations: 1.771 MB / 320.8 MB, free: 292 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/0.1027, allocations: 0 / 320.8 MB, free: 292 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005673/0.1033, allocations: 175.8 kB / 320.9 MB, free: 116 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001331/0.1046, allocations: 0.5885 MB / 321.5 MB, free: 15.52 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.129e-05/0.1047, allocations: 31.92 kB / 321.6 MB, free: 15.49 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00112/0.1058, allocations: 1.18 MB / 322.7 MB, free: 14.27 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.1058, allocations: 0 / 322.7 MB, free: 14.27 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001811/0.1076, allocations: 1.268 MB / 324 MB, free: 12.98 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003472/0.108, allocations: 262.9 kB / 324.3 MB, free: 12.73 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001031/0.1081, allocations: 20 kB / 324.3 MB, free: 12.71 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003776/0.1084, allocations: 47.97 kB / 324.3 MB, free: 12.66 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001229/0.1086, allocations: 85.14 kB / 324.4 MB, free: 12.57 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004045/0.109, allocations: 43.97 kB / 324.5 MB, free: 12.53 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003825/0.1094, allocations: 0.5185 MB / 325 MB, free: 12 MB / 314.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1094, allocations: 0 / 325 MB, free: 12 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002056/0.1114, allocations: 0.8701 MB / 325.8 MB, free: 11.13 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T,tank3.level,tank3.medium.T) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 89 * 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 {(9,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008966/0.1123, allocations: 481 kB / 326.3 MB, free: 10.66 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002373/0.1147, allocations: 1.43 MB / 327.7 MB, free: 9.23 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.1147, allocations: 3.938 kB / 327.7 MB, free: 9.227 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000667/0.1154, allocations: 455.8 kB / 328.2 MB, free: 8.781 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00146/0.1168, allocations: 0.6219 MB / 328.8 MB, free: 8.16 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00353/0.1203, allocations: 2.465 MB / 331.3 MB, free: 5.652 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000219/0.1206, allocations: 340.7 kB / 331.6 MB, free: 5.301 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001109/0.1217, allocations: 299.3 kB / 331.9 MB, free: 5.004 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009059/0.1226, allocations: 0.5837 MB / 332.5 MB, free: 4.418 MB / 314.7 MB Notification: Performance of SimCode: time 1.453e-06/0.1226, allocations: 0 / 332.5 MB, free: 4.418 MB / 314.7 MB Notification: Performance of Templates: time 0.1412/0.2638, allocations: 37.94 MB / 370.4 MB, free: 79.93 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/Tanks/ThreeTanks/ThreeTanks.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.843488074839115]