Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001091/0.001091, allocations: 113.3 kB / 17.28 MB, free: 6.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001137/0.001137, allocations: 189.3 kB / 18.19 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.476/1.476, allocations: 205.1 MB / 224 MB, free: 12.44 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001745/0.001745, allocations: 52.14 kB / 280.1 MB, free: 3.512 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.108, allocations: 46.63 MB / 326.8 MB, free: 4.812 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004432/0.1125, allocations: 2.806 MB / 329.6 MB, free: 1.984 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00137/0.1139, allocations: 0.8539 MB / 330.4 MB, free: 1.121 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001341/0.114, allocations: 4 kB / 330.4 MB, free: 1.117 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000288/0.1144, allocations: 63.59 kB / 330.5 MB, free: 1.055 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000253/0.1146, allocations: 119.1 kB / 330.6 MB, free: 0.9375 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001975/0.1148, allocations: 75.86 kB / 330.7 MB, free: 0.8633 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005134/0.1153, allocations: 430.4 kB / 331.1 MB, free: 452 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002248/0.1156, allocations: 103.4 kB / 331.2 MB, free: 348 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001711/0.1158, allocations: 159.4 kB / 331.4 MB, free: 188 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002386/0.116, allocations: 175.2 kB / 331.5 MB, free: 12 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 8.59e-05/0.1161, allocations: 36.05 kB / 331.6 MB, free: 15.97 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.241e-05/0.1162, allocations: 32 kB / 331.6 MB, free: 15.94 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.119e-05/0.1162, allocations: 79.69 kB / 331.7 MB, free: 15.87 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001943/0.1164, allocations: 187.1 kB / 331.9 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000495/0.117, allocations: 442.8 kB / 332.3 MB, free: 15.25 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.765e-06/0.117, allocations: 4 kB / 332.3 MB, free: 15.25 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.905e-06/0.117, allocations: 0 / 332.3 MB, free: 15.25 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.502e-06/0.117, allocations: 0 / 332.3 MB, free: 15.25 MB / 286.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.001156/0.1182, allocations: 0.6717 MB / 333 MB, free: 14.52 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.683e-05/0.1182, allocations: 15.88 kB / 333 MB, free: 14.5 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001019/0.1183, allocations: 44.47 kB / 333 MB, free: 14.46 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003893/0.1187, allocations: 303.4 kB / 333.3 MB, free: 14.12 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001121/0.1188, allocations: 54.62 kB / 333.4 MB, free: 14.07 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.374e-05/0.1189, allocations: 24.38 kB / 333.4 MB, free: 14.04 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005114/0.1194, allocations: 317.6 kB / 333.7 MB, free: 13.69 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.914e-05/0.1194, allocations: 3.984 kB / 333.7 MB, free: 13.69 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.343e-05/0.1195, allocations: 12 kB / 333.7 MB, free: 13.68 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.021e-05/0.1195, allocations: 8 kB / 333.7 MB, free: 13.67 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003874/0.1199, allocations: 197.6 kB / 333.9 MB, free: 13.48 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001337/0.1212, allocations: 0.8141 MB / 334.7 MB, free: 12.61 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000548/0.1218, allocations: 271 kB / 335 MB, free: 12.34 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002132/0.122, allocations: 116.8 kB / 335.1 MB, free: 12.22 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.799e-05/0.1221, allocations: 8 kB / 335.1 MB, free: 12.21 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.013e-05/0.1221, allocations: 38.56 kB / 335.2 MB, free: 12.16 MB / 286.1 MB Notification: Performance of pre-optimization done (n=29): time 1.282e-06/0.1221, allocations: 0 / 335.2 MB, free: 12.16 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.0009888/0.1231, allocations: 487.9 kB / 335.6 MB, free: 11.66 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001403/0.1233, allocations: 316.4 kB / 336 MB, free: 11.28 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002682/0.1235, allocations: 279 kB / 336.2 MB, free: 10.99 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.04e-05/0.1236, allocations: 33.7 kB / 336.3 MB, free: 10.95 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001165/0.1237, allocations: 168.7 kB / 336.4 MB, free: 10.78 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.46e-05/0.1238, allocations: 102.5 kB / 336.5 MB, free: 10.68 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001107/0.1239, allocations: 69.69 kB / 336.6 MB, free: 10.61 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.124, allocations: 334.8 kB / 336.9 MB, free: 10.27 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001924/0.1242, allocations: 95.95 kB / 337 MB, free: 10.18 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002866/0.1245, allocations: 219.7 kB / 337.2 MB, free: 9.918 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004259/0.1249, allocations: 270.6 kB / 337.5 MB, free: 9.637 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.125, allocations: 0 / 337.5 MB, free: 9.637 MB / 286.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000596/0.1256, allocations: 364.8 kB / 337.8 MB, free: 9.266 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.758e-05/0.1256, allocations: 33.7 kB / 337.9 MB, free: 9.227 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.1256, allocations: 4 kB / 337.9 MB, free: 9.223 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001826/0.1258, allocations: 40.84 kB / 337.9 MB, free: 9.18 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009795/0.1268, allocations: 163.8 kB / 338.1 MB, free: 9.02 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003841/0.1307, allocations: 3.232 MB / 341.3 MB, free: 5.512 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000361/0.131, allocations: 31.92 kB / 341.3 MB, free: 5.48 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.933e-05/0.1311, allocations: 16 kB / 341.4 MB, free: 5.465 MB / 286.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.0002506/0.1313, allocations: 153.7 kB / 341.5 MB, free: 5.305 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.081e-05/0.1314, allocations: 31.72 kB / 341.5 MB, free: 5.273 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.978e-05/0.1315, allocations: 35.08 kB / 341.6 MB, free: 5.238 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.1315, allocations: 4 kB / 341.6 MB, free: 5.234 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.1315, allocations: 4 kB / 341.6 MB, free: 5.23 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008089/0.1323, allocations: 0.6542 MB / 342.2 MB, free: 4.469 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004635/0.1328, allocations: 397.1 kB / 342.6 MB, free: 4.031 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.1328, allocations: 96 / 342.6 MB, free: 4.031 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001338/0.1342, allocations: 207.7 kB / 342.8 MB, free: 3.828 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.761e-05/0.1343, allocations: 28.78 kB / 342.9 MB, free: 3.797 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.44e-05/0.1343, allocations: 8 kB / 342.9 MB, free: 3.789 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003683/0.138, allocations: 3.041 MB / 345.9 MB, free: 480 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.138, allocations: 0 / 345.9 MB, free: 480 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008937/0.1389, allocations: 0.5076 MB / 346.4 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001766/0.1391, allocations: 140.7 kB / 346.6 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.137e-05/0.1392, allocations: 16.06 kB / 346.6 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002711/0.1394, allocations: 15.98 kB / 346.6 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.438e-05/0.1395, allocations: 23.97 kB / 346.6 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.028e-05/0.1396, allocations: 8 kB / 346.6 MB, free: 15.72 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002541/0.1398, allocations: 198 kB / 346.8 MB, free: 15.52 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1398, allocations: 0 / 346.8 MB, free: 15.52 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005082/0.1404, allocations: 107.8 kB / 346.9 MB, free: 15.42 MB / 302.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.0001919/0.1406, allocations: 111.2 kB / 347 MB, free: 15.3 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001666/0.1422, allocations: 0.549 MB / 347.6 MB, free: 14.72 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.1422, allocations: 0 / 347.6 MB, free: 14.72 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00144/0.1437, allocations: 398.9 kB / 348 MB, free: 14.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006029/0.1443, allocations: 99.97 kB / 348.1 MB, free: 14.23 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001938/0.1463, allocations: 0.9646 MB / 349 MB, free: 13.24 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004246/0.1467, allocations: 0.7723 MB / 349.8 MB, free: 12.44 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001648/0.1469, allocations: 34.97 kB / 349.8 MB, free: 12.41 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.921e-05/0.1469, allocations: 31.42 kB / 349.9 MB, free: 12.38 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.147, allocations: 0 / 349.9 MB, free: 12.38 MB / 302.1 MB Notification: Performance of Templates: time 0.01146/0.1584, allocations: 6.108 MB / 356 MB, free: 6.273 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches