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.001063/0.001063, allocations: 104.5 kB / 17.58 MB, free: 5.441 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.001248/0.001248, allocations: 191.9 kB / 18.51 MB, free: 4.523 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.423/1.423, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.001282/0.001282, allocations: 55.92 kB / 280.6 MB, free: 3.18 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1146, allocations: 46.63 MB / 327.3 MB, free: 4.477 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004761/0.1194, allocations: 2.753 MB / 330 MB, free: 1.699 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001708/0.1212, allocations: 0.8615 MB / 330.9 MB, free: 0.8281 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001651/0.1214, allocations: 4 kB / 330.9 MB, free: 0.8242 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002983/0.1217, allocations: 79.39 kB / 331 MB, free: 0.7461 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003029/0.122, allocations: 134.9 kB / 331.1 MB, free: 0.6133 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002124/0.1223, allocations: 83.83 kB / 331.2 MB, free: 0.5312 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004584/0.1227, allocations: 430.4 kB / 331.6 MB, free: 112 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001959/0.1229, allocations: 107.3 kB / 331.7 MB, free: 4 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001815/0.1231, allocations: 155.4 kB / 331.9 MB, free: 15.85 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002318/0.1234, allocations: 179.2 kB / 332 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.045e-05/0.1234, allocations: 36 kB / 332.1 MB, free: 15.64 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.57e-05/0.1235, allocations: 32 kB / 332.1 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.45e-05/0.1236, allocations: 79.75 kB / 332.2 MB, free: 15.53 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001818/0.1238, allocations: 195 kB / 332.4 MB, free: 15.34 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000412/0.1242, allocations: 434.8 kB / 332.8 MB, free: 14.91 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.1242, allocations: 0 / 332.8 MB, free: 14.91 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1242, allocations: 4 kB / 332.8 MB, free: 14.91 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.584e-06/0.1242, allocations: 0 / 332.8 MB, free: 14.91 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.001103/0.1254, allocations: 0.6795 MB / 333.5 MB, free: 14.18 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.616e-05/0.1254, allocations: 11.89 kB / 333.5 MB, free: 14.16 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001015/0.1255, allocations: 48.47 kB / 333.5 MB, free: 14.12 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003632/0.1259, allocations: 299.4 kB / 333.8 MB, free: 13.79 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001029/0.126, allocations: 50.69 kB / 333.9 MB, free: 13.73 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.746e-05/0.126, allocations: 24.38 kB / 333.9 MB, free: 13.71 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005488/0.1266, allocations: 317.6 kB / 334.2 MB, free: 13.36 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.713e-05/0.1266, allocations: 0 / 334.2 MB, free: 13.36 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.342e-05/0.1267, allocations: 15.94 kB / 334.2 MB, free: 13.34 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.596e-06/0.1267, allocations: 4 kB / 334.2 MB, free: 13.34 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004045/0.1271, allocations: 201.6 kB / 334.4 MB, free: 13.14 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001362/0.1285, allocations: 0.8103 MB / 335.2 MB, free: 12.28 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005221/0.129, allocations: 263 kB / 335.5 MB, free: 12.02 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002003/0.1292, allocations: 120.9 kB / 335.6 MB, free: 11.89 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.865e-05/0.1293, allocations: 15.97 kB / 335.6 MB, free: 11.88 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.298e-05/0.1293, allocations: 42.59 kB / 335.7 MB, free: 11.83 MB / 286.1 MB Notification: Performance of pre-optimization done (n=29): time 1.633e-06/0.1293, allocations: 0 / 335.7 MB, free: 11.83 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.001031/0.1304, allocations: 483.1 kB / 336.1 MB, free: 11.33 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001473/0.1305, allocations: 312.4 kB / 336.4 MB, free: 10.95 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000276/0.1308, allocations: 283 kB / 336.7 MB, free: 10.66 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.333e-05/0.1308, allocations: 33.7 kB / 336.8 MB, free: 10.62 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001235/0.131, allocations: 164.7 kB / 336.9 MB, free: 10.45 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.921e-05/0.1311, allocations: 106.5 kB / 337 MB, free: 10.35 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.716e-05/0.1312, allocations: 65.64 kB / 337.1 MB, free: 10.28 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.1313, allocations: 346.8 kB / 337.4 MB, free: 9.93 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000199/0.1315, allocations: 91.95 kB / 337.5 MB, free: 9.84 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002789/0.1318, allocations: 211.8 kB / 337.7 MB, free: 9.59 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004328/0.1322, allocations: 270.6 kB / 338 MB, free: 9.309 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1322, allocations: 0 / 338 MB, free: 9.309 MB / 286.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000602/0.1329, allocations: 368.8 kB / 338.3 MB, free: 8.934 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.594e-05/0.1329, allocations: 37.64 kB / 338.4 MB, free: 8.891 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.1329, allocations: 0 / 338.4 MB, free: 8.891 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001838/0.1331, allocations: 40.83 kB / 338.4 MB, free: 8.848 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009286/0.134, allocations: 163.9 kB / 338.6 MB, free: 8.688 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003544/0.1376, allocations: 3.236 MB / 341.8 MB, free: 5.176 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002651/0.1379, allocations: 31.78 kB / 341.8 MB, free: 5.145 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.514e-05/0.1379, allocations: 8 kB / 341.9 MB, free: 5.137 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.0001907/0.1381, allocations: 157.7 kB / 342 MB, free: 4.973 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.674e-05/0.1382, allocations: 31.72 kB / 342 MB, free: 4.941 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.451e-05/0.1383, allocations: 39.08 kB / 342.1 MB, free: 4.902 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.1383, allocations: 4 kB / 342.1 MB, free: 4.898 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.1383, allocations: 0 / 342.1 MB, free: 4.898 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006811/0.139, allocations: 0.6549 MB / 342.7 MB, free: 4.137 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004054/0.1394, allocations: 385.1 kB / 343.1 MB, free: 3.711 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.1394, allocations: 0 / 343.1 MB, free: 3.711 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001211/0.1406, allocations: 211.7 kB / 343.3 MB, free: 3.504 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.291e-05/0.1407, allocations: 24.8 kB / 343.3 MB, free: 3.477 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.449e-05/0.1407, allocations: 15.98 kB / 343.4 MB, free: 3.461 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003144/0.1439, allocations: 3.041 MB / 346.4 MB, free: 144 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.588e-06/0.1439, allocations: 3.938 kB / 346.4 MB, free: 140 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008449/0.1448, allocations: 0.5118 MB / 346.9 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001655/0.1449, allocations: 140.7 kB / 347.1 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.544e-05/0.145, allocations: 4 kB / 347.1 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002504/0.1452, allocations: 19.98 kB / 347.1 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.058e-05/0.1453, allocations: 19.97 kB / 347.1 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.215e-05/0.1454, allocations: 12 kB / 347.1 MB, free: 15.39 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002018/0.1456, allocations: 198 kB / 347.3 MB, free: 15.2 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.855e-06/0.1456, allocations: 0 / 347.3 MB, free: 15.2 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000458/0.1461, allocations: 107.9 kB / 347.4 MB, free: 15.09 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.0001477/0.1462, allocations: 107.2 kB / 347.5 MB, free: 14.98 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001543/0.1478, allocations: 0.5489 MB / 348.1 MB, free: 14.4 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.1478, allocations: 0 / 348.1 MB, free: 14.4 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001256/0.149, allocations: 406.3 kB / 348.5 MB, free: 13.99 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004869/0.1495, allocations: 95.81 kB / 348.6 MB, free: 13.9 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00175/0.1513, allocations: 0.8588 MB / 349.4 MB, free: 13.02 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003367/0.1517, allocations: 0.7762 MB / 350.2 MB, free: 12.21 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001501/0.1518, allocations: 34.95 kB / 350.2 MB, free: 12.18 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.583e-05/0.1519, allocations: 31.44 kB / 350.3 MB, free: 12.15 MB / 302.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1519, allocations: 0 / 350.3 MB, free: 12.15 MB / 302.1 MB Notification: Performance of Templates: time 0.01185/0.1637, allocations: 6.198 MB / 356.5 MB, free: 5.957 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches