Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001447/0.001447, allocations: 109.5 kB / 17.68 MB, free: 5.332 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.001516/0.001516, allocations: 190.9 kB / 18.62 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.337/1.337, allocations: 222.9 MB / 242.3 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000952/0.000952, allocations: 42.59 kB / 302 MB, free: 5.16 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08773/0.0887, allocations: 49.45 MB / 351.5 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003245/0.09197, allocations: 2.752 MB / 354.2 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00105/0.09303, allocations: 0.8255 MB / 355.1 MB, free: 92 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.727e-05/0.09314, allocations: 4 kB / 355.1 MB, free: 88 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001913/0.09334, allocations: 79.39 kB / 355.1 MB, free: 8 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002358/0.0936, allocations: 130.9 kB / 355.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001727/0.09378, allocations: 91.81 kB / 355.4 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003975/0.09419, allocations: 438.3 kB / 355.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001476/0.09435, allocations: 99.3 kB / 355.9 MB, free: 15.26 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000141/0.09449, allocations: 163.4 kB / 356 MB, free: 15.1 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001972/0.0947, allocations: 171.3 kB / 356.2 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.93e-05/0.09475, allocations: 36 kB / 356.3 MB, free: 14.9 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.289e-05/0.09482, allocations: 36 kB / 356.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.714e-05/0.0949, allocations: 79.67 kB / 356.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001634/0.09507, allocations: 183.2 kB / 356.5 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003586/0.09543, allocations: 458.4 kB / 357 MB, free: 14.16 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.09544, allocations: 0 / 357 MB, free: 14.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.09545, allocations: 3.938 kB / 357 MB, free: 14.15 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.09546, allocations: 0 / 357 MB, free: 14.15 MB / 302.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.0009171/0.09638, allocations: 0.6794 MB / 357.7 MB, free: 13.42 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.731e-05/0.09642, allocations: 15.89 kB / 357.7 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.609e-05/0.09649, allocations: 36.56 kB / 357.7 MB, free: 13.37 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003452/0.09684, allocations: 303.4 kB / 358 MB, free: 13.03 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.794e-05/0.09693, allocations: 50.7 kB / 358.1 MB, free: 12.98 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.069e-05/0.09698, allocations: 24.28 kB / 358.1 MB, free: 12.95 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004431/0.09743, allocations: 325.6 kB / 358.4 MB, free: 12.6 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.09745, allocations: 0 / 358.4 MB, free: 12.6 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.654e-05/0.09748, allocations: 12 kB / 358.4 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.09749, allocations: 4 kB / 358.4 MB, free: 12.58 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003903/0.09789, allocations: 209.6 kB / 358.6 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001232/0.09913, allocations: 0.7909 MB / 359.4 MB, free: 11.53 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004977/0.09964, allocations: 275.4 kB / 359.7 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002066/0.09986, allocations: 120.8 kB / 359.8 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.153e-05/0.0999, allocations: 4 kB / 359.8 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.184e-05/0.09993, allocations: 46.59 kB / 359.9 MB, free: 11.07 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.372e-06/0.09994, allocations: 0 / 359.9 MB, free: 11.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.0009087/0.1009, allocations: 483.1 kB / 360.3 MB, free: 10.57 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001138/0.101, allocations: 320.4 kB / 360.6 MB, free: 10.19 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000243/0.1012, allocations: 275 kB / 360.9 MB, free: 9.91 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.126e-05/0.1013, allocations: 37.69 kB / 361 MB, free: 9.867 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.769e-05/0.1014, allocations: 168.6 kB / 361.1 MB, free: 9.695 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.77e-05/0.1014, allocations: 102.5 kB / 361.2 MB, free: 9.594 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001025/0.1016, allocations: 65.69 kB / 361.3 MB, free: 9.523 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.1017, allocations: 342.8 kB / 361.6 MB, free: 9.18 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001942/0.1019, allocations: 95.95 kB / 361.7 MB, free: 9.086 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002781/0.1021, allocations: 212.6 kB / 361.9 MB, free: 8.832 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000409/0.1026, allocations: 275.4 kB / 362.2 MB, free: 8.547 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.1026, allocations: 0 / 362.2 MB, free: 8.547 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005876/0.1032, allocations: 361.6 kB / 362.5 MB, free: 8.18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.004e-05/0.1032, allocations: 41.73 kB / 362.6 MB, free: 8.133 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.537e-06/0.1032, allocations: 0 / 362.6 MB, free: 8.133 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00012/0.1033, allocations: 40.84 kB / 362.6 MB, free: 8.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009573/0.1043, allocations: 159.8 kB / 362.8 MB, free: 7.934 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003218/0.1075, allocations: 3.225 MB / 366 MB, free: 4.434 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002503/0.1078, allocations: 31.78 kB / 366 MB, free: 4.402 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.673e-05/0.1078, allocations: 15.98 kB / 366 MB, free: 4.387 MB / 302.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.0001475/0.108, allocations: 157.7 kB / 366.2 MB, free: 4.223 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.259e-05/0.1081, allocations: 35.62 kB / 366.2 MB, free: 4.188 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.466e-05/0.1081, allocations: 39.08 kB / 366.3 MB, free: 4.148 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.1082, allocations: 4 kB / 366.3 MB, free: 4.145 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.384e-06/0.1082, allocations: 0 / 366.3 MB, free: 4.145 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005962/0.1088, allocations: 0.6501 MB / 366.9 MB, free: 3.387 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003732/0.1091, allocations: 393.2 kB / 367.3 MB, free: 2.953 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.1092, allocations: 0 / 367.3 MB, free: 2.953 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001278/0.1104, allocations: 203.7 kB / 367.5 MB, free: 2.754 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.645e-05/0.1105, allocations: 28.84 kB / 367.5 MB, free: 2.723 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.241e-05/0.1106, allocations: 12 kB / 367.5 MB, free: 2.711 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1616/0.2721, allocations: 3.027 MB / 370.6 MB, free: 24.54 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.2722, allocations: 1.656 kB / 370.6 MB, free: 24.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009022/0.2731, allocations: 0.5093 MB / 371.1 MB, free: 24.4 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000158/0.2732, allocations: 136.4 kB / 371.2 MB, free: 24.3 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.97e-05/0.2733, allocations: 14.69 kB / 371.2 MB, free: 24.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002764/0.2736, allocations: 15.72 kB / 371.3 MB, free: 24.3 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.232e-05/0.2737, allocations: 23.88 kB / 371.3 MB, free: 24.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.513e-05/0.2737, allocations: 10.48 kB / 371.3 MB, free: 24.3 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001953/0.2739, allocations: 199.6 kB / 371.5 MB, free: 24.23 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.91e-07/0.2739, allocations: 0 / 371.5 MB, free: 24.23 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004618/0.2744, allocations: 108.2 kB / 371.6 MB, free: 24.23 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.0001282/0.2745, allocations: 110.5 kB / 371.7 MB, free: 24.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001555/0.2761, allocations: 0.5377 MB / 372.2 MB, free: 23.96 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.878e-06/0.2761, allocations: 2.156 kB / 372.2 MB, free: 23.96 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001438/0.2775, allocations: 400.6 kB / 372.6 MB, free: 23.86 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005208/0.2781, allocations: 88.53 kB / 372.7 MB, free: 23.85 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001746/0.2798, allocations: 0.8592 MB / 373.6 MB, free: 23.5 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002365/0.2801, allocations: 0.7765 MB / 374.3 MB, free: 22.79 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001686/0.2803, allocations: 39.44 kB / 374.4 MB, free: 22.78 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.927e-05/0.2803, allocations: 26.78 kB / 374.4 MB, free: 22.78 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.2803, allocations: 0 / 374.4 MB, free: 22.78 MB / 302.1 MB Notification: Performance of Templates: time 0.01137/0.2917, allocations: 6.202 MB / 380.6 MB, free: 21.88 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches