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.0009353/0.0009352, allocations: 93.45 kB / 17.3 MB, free: 6.395 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.00127/0.001271, allocations: 172.5 kB / 18.2 MB, free: 5.551 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.636/1.636, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0005079/0.0005079, allocations: 12 kB / 281.4 MB, free: 3.426 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1108, allocations: 47.58 MB / 329 MB, free: 3.766 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.00351/0.1144, allocations: 2.44 MB / 331.4 MB, free: 1.309 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001973/0.1164, allocations: 0.7995 MB / 332.2 MB, free: 0.5 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003356/0.1168, allocations: 7.938 kB / 332.2 MB, free: 0.4922 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004633/0.1173, allocations: 59.59 kB / 332.3 MB, free: 444 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005875/0.1179, allocations: 119.1 kB / 332.4 MB, free: 324 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002977/0.1182, allocations: 71.92 kB / 332.4 MB, free: 252 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007248/0.1189, allocations: 410.4 kB / 332.8 MB, free: 15.84 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002479/0.1192, allocations: 87.36 kB / 332.9 MB, free: 15.76 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003434/0.1195, allocations: 147.4 kB / 333.1 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002936/0.1198, allocations: 167.2 kB / 333.2 MB, free: 15.45 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.624e-05/0.1199, allocations: 20 kB / 333.3 MB, free: 15.43 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.61e-05/0.12, allocations: 28 kB / 333.3 MB, free: 15.4 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.97e-05/0.1201, allocations: 67.67 kB / 333.4 MB, free: 15.34 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002085/0.1203, allocations: 200.8 kB / 333.6 MB, free: 15.13 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004147/0.1207, allocations: 414.6 kB / 334 MB, free: 14.73 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.1207, allocations: 0 / 334 MB, free: 14.73 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.479e-06/0.1207, allocations: 0 / 334 MB, free: 14.73 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.803e-06/0.1208, allocations: 3.938 kB / 334 MB, free: 14.72 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.001109/0.1219, allocations: 0.6211 MB / 334.6 MB, free: 14.05 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.64e-05/0.1219, allocations: 12.03 kB / 334.6 MB, free: 14.04 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001096/0.1221, allocations: 36.56 kB / 334.6 MB, free: 14 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004487/0.1225, allocations: 299.4 kB / 334.9 MB, free: 13.67 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001278/0.1226, allocations: 54.69 kB / 335 MB, free: 13.61 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.177e-05/0.1227, allocations: 24.38 kB / 335 MB, free: 13.59 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006558/0.1234, allocations: 329.6 kB / 335.3 MB, free: 13.22 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.804e-05/0.1234, allocations: 0 / 335.3 MB, free: 13.22 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.538e-05/0.1234, allocations: 12 kB / 335.3 MB, free: 13.21 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.867e-06/0.1235, allocations: 4 kB / 335.3 MB, free: 13.21 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004457/0.1239, allocations: 209.6 kB / 335.5 MB, free: 13 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001485/0.1254, allocations: 0.8143 MB / 336.4 MB, free: 12.14 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005969/0.126, allocations: 287 kB / 336.6 MB, free: 11.85 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002175/0.1263, allocations: 124.8 kB / 336.8 MB, free: 11.72 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.586e-05/0.1263, allocations: 8 kB / 336.8 MB, free: 11.71 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.346e-05/0.1263, allocations: 42.55 kB / 336.8 MB, free: 11.66 MB / 286.1 MB Notification: Performance of pre-optimization done (n=29): time 1.753e-06/0.1263, allocations: 0 / 336.8 MB, free: 11.66 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.001061/0.1274, allocations: 495.9 kB / 337.3 MB, free: 11.15 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001653/0.1276, allocations: 316.4 kB / 337.6 MB, free: 10.77 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003179/0.1279, allocations: 279 kB / 337.9 MB, free: 10.48 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.841e-05/0.128, allocations: 33.7 kB / 337.9 MB, free: 10.45 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001362/0.1281, allocations: 172.6 kB / 338.1 MB, free: 10.27 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.149e-05/0.1282, allocations: 106.5 kB / 338.2 MB, free: 10.16 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.872e-05/0.1283, allocations: 33.7 kB / 338.2 MB, free: 10.12 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.1284, allocations: 338.8 kB / 338.5 MB, free: 9.785 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002297/0.1287, allocations: 95.95 kB / 338.6 MB, free: 9.691 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003426/0.129, allocations: 211.8 kB / 338.8 MB, free: 9.441 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000491/0.1295, allocations: 286.6 kB / 339.1 MB, free: 9.145 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.1295, allocations: 3.938 kB / 339.1 MB, free: 9.141 MB / 286.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006557/0.1302, allocations: 376.7 kB / 339.5 MB, free: 8.758 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.185e-05/0.1303, allocations: 33.69 kB / 339.5 MB, free: 8.719 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.1303, allocations: 0 / 339.5 MB, free: 8.719 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001666/0.1304, allocations: 36.84 kB / 339.6 MB, free: 8.68 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001056/0.1315, allocations: 203.9 kB / 339.8 MB, free: 8.48 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003787/0.1353, allocations: 3.078 MB / 342.8 MB, free: 5.141 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003593/0.1357, allocations: 31.83 kB / 342.9 MB, free: 5.109 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.398e-05/0.1357, allocations: 12 kB / 342.9 MB, free: 5.098 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.0002345/0.136, allocations: 153.8 kB / 343 MB, free: 4.938 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000103/0.1361, allocations: 39.56 kB / 343.1 MB, free: 4.898 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.352e-05/0.1362, allocations: 39.16 kB / 343.1 MB, free: 4.859 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.459e-06/0.1362, allocations: 4 kB / 343.1 MB, free: 4.855 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.1362, allocations: 0 / 343.1 MB, free: 4.855 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007512/0.137, allocations: 0.6698 MB / 343.8 MB, free: 4.078 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004906/0.1375, allocations: 389.1 kB / 344.2 MB, free: 3.648 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.1375, allocations: 0 / 344.2 MB, free: 3.648 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001375/0.1389, allocations: 247.7 kB / 344.4 MB, free: 3.406 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.285e-05/0.139, allocations: 28.78 kB / 344.4 MB, free: 3.375 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.489e-05/0.139, allocations: 4 kB / 344.4 MB, free: 3.371 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003434/0.1424, allocations: 2.907 MB / 347.3 MB, free: 204 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.1425, allocations: 4.125 kB / 347.3 MB, free: 200 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001003/0.1435, allocations: 0.523 MB / 347.9 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002019/0.1437, allocations: 140.8 kB / 348 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.32e-05/0.1438, allocations: 4 kB / 348 MB, free: 15.49 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003/0.1441, allocations: 23.89 kB / 348 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.039e-05/0.1442, allocations: 28.05 kB / 348.1 MB, free: 15.44 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.003e-05/0.1442, allocations: 7.938 kB / 348.1 MB, free: 15.43 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002766/0.1445, allocations: 205.9 kB / 348.3 MB, free: 15.23 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1445, allocations: 0 / 348.3 MB, free: 15.23 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005824/0.1451, allocations: 100 kB / 348.4 MB, free: 15.13 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.0001691/0.1453, allocations: 107.2 kB / 348.5 MB, free: 15.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001775/0.1471, allocations: 0.5954 MB / 349.1 MB, free: 14.39 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 8.516e-06/0.1471, allocations: 4 kB / 349.1 MB, free: 14.39 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001509/0.1486, allocations: 438.9 kB / 349.5 MB, free: 13.95 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006521/0.1493, allocations: 84.38 kB / 349.6 MB, free: 13.87 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001982/0.1513, allocations: 1.065 MB / 350.6 MB, free: 12.78 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003618/0.1516, allocations: 0.7762 MB / 351.4 MB, free: 11.98 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001828/0.1518, allocations: 38.95 kB / 351.5 MB, free: 11.94 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.317e-05/0.1519, allocations: 23.44 kB / 351.5 MB, free: 11.92 MB / 302.1 MB Notification: Performance of SimCode: time 9.62e-07/0.1519, allocations: 4 kB / 351.5 MB, free: 11.91 MB / 302.1 MB Notification: Performance of Templates: time 0.0132/0.1651, allocations: 5.724 MB / 357.2 MB, free: 6.195 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