Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank.H|openTank.m",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank.H|openTank.m",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001501/0.001501, allocations: 186.7 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.978/1.978, allocations: 205.4 MB / 222.5 MB, free: 9.141 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001136/0.001136, allocations: 88.28 kB / 270.9 MB, free: 8.395 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005159/0.000516, allocations: 8 kB / 327 MB, free: 236 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3344/0.3349, allocations: 47.56 MB / 374.5 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1338/0.4688, allocations: 83.23 MB / 457.8 MB, free: 13.56 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003026/0.4691, allocations: 87.89 kB / 457.8 MB, free: 13.47 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03583/0.505, allocations: 8.293 MB / 466.1 MB, free: 5.145 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.505, allocations: 3.938 kB / 466.1 MB, free: 5.141 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.862e-05/0.5051, allocations: 8 kB / 466.1 MB, free: 5.133 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.00136/0.5064, allocations: 0.6578 MB / 466.8 MB, free: 4.426 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/0.5065, allocations: 8.031 kB / 466.8 MB, free: 4.418 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001311/0.5066, allocations: 47.53 kB / 466.9 MB, free: 4.371 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007128/0.5074, allocations: 338.2 kB / 467.2 MB, free: 4 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.97e-05/0.5074, allocations: 12.44 kB / 467.2 MB, free: 3.988 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.646e-05/0.5075, allocations: 27.97 kB / 467.2 MB, free: 3.961 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006845/0.5082, allocations: 290.3 kB / 467.5 MB, free: 3.637 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.702e-05/0.5082, allocations: 0 / 467.5 MB, free: 3.637 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.326e-05/0.5083, allocations: 11.94 kB / 467.5 MB, free: 3.625 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.5083, allocations: 4 kB / 467.5 MB, free: 3.621 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004741/0.5088, allocations: 161.6 kB / 467.7 MB, free: 3.465 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002059/0.5109, allocations: 0.7785 MB / 468.5 MB, free: 2.625 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008215/0.5117, allocations: 223.3 kB / 468.7 MB, free: 2.398 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.259e-05/0.5118, allocations: 3.984 kB / 468.7 MB, free: 2.395 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003975/0.5122, allocations: 142.1 kB / 468.8 MB, free: 2.246 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 3.217e-06/0.5122, allocations: 4 kB / 468.8 MB, free: 2.242 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.001408/0.5136, allocations: 411.4 kB / 469.2 MB, free: 1.812 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00017/0.5138, allocations: 316.4 kB / 469.5 MB, free: 1.43 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007522/0.5146, allocations: 388.7 kB / 469.9 MB, free: 1.043 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.076e-05/0.5147, allocations: 33.7 kB / 469.9 MB, free: 1.004 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001912/0.5149, allocations: 242.6 kB / 470.2 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001076/0.515, allocations: 82.84 kB / 470.3 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.089e-05/0.515, allocations: 8 kB / 470.3 MB, free: 0.6758 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.5152, allocations: 326.8 kB / 470.6 MB, free: 356 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002403/0.5154, allocations: 67.95 kB / 470.7 MB, free: 288 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003509/0.5158, allocations: 180.1 kB / 470.8 MB, free: 60 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003034/0.5161, allocations: 89.17 kB / 470.9 MB, free: 15.97 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.087e-06/0.5161, allocations: 0 / 470.9 MB, free: 15.97 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007766/0.5169, allocations: 257 kB / 471.2 MB, free: 15.71 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.22e-05/0.517, allocations: 4 kB / 471.2 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.196e-06/0.517, allocations: 0 / 471.2 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001845/0.5172, allocations: 36.83 kB / 471.2 MB, free: 15.67 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004266/0.5176, allocations: 59.91 kB / 471.3 MB, free: 15.61 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002038/0.5197, allocations: 1.464 MB / 472.7 MB, free: 14.01 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003657/0.5201, allocations: 27.75 kB / 472.8 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3e-05/0.5201, allocations: 4 kB / 472.8 MB, free: 13.98 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEvent,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003272/0.5205, allocations: 174.6 kB / 472.9 MB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.687e-05/0.5206, allocations: 43.53 kB / 473 MB, free: 13.76 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008659/0.5214, allocations: 279.9 kB / 473.3 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.116e-06/0.5215, allocations: 4 kB / 473.3 MB, free: 13.47 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.965e-06/0.5215, allocations: 0 / 473.3 MB, free: 13.47 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007539/0.5222, allocations: 0.5947 MB / 473.9 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001587/0.5238, allocations: 0.743 MB / 474.6 MB, free: 11.97 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.5239, allocations: 4 kB / 474.6 MB, free: 11.97 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004124/0.5243, allocations: 51.91 kB / 474.6 MB, free: 11.92 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.608e-06/0.5243, allocations: 4 kB / 474.7 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.971e-05/0.5244, allocations: 7.984 kB / 474.7 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.528e-06/0.5244, allocations: 0 / 474.7 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.5244, allocations: 480 / 474.7 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00103/0.5254, allocations: 430.7 kB / 475.1 MB, free: 11.47 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000266/0.5257, allocations: 156.6 kB / 475.2 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.792e-05/0.5258, allocations: 8 kB / 475.2 MB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002987/0.5261, allocations: 15.98 kB / 475.3 MB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.534e-05/0.5262, allocations: 15.97 kB / 475.3 MB, free: 11.26 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.543e-05/0.5262, allocations: 4 kB / 475.3 MB, free: 11.25 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005566/0.5268, allocations: 315 kB / 475.6 MB, free: 10.95 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.5268, allocations: 0 / 475.6 MB, free: 10.95 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006256/0.5275, allocations: 119.9 kB / 475.7 MB, free: 10.83 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (openTank.m,openTank.H) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001251/0.5287, allocations: 439.8 kB / 476.1 MB, free: 10.43 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009697/0.5297, allocations: 327 kB / 476.5 MB, free: 10.09 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.5297, allocations: 0 / 476.5 MB, free: 10.09 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002773/0.53, allocations: 95.78 kB / 476.5 MB, free: 10 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007936/0.5308, allocations: 90.45 kB / 476.6 MB, free: 9.914 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002073/0.5329, allocations: 0.9661 MB / 477.6 MB, free: 8.914 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000486/0.5334, allocations: 0.804 MB / 478.4 MB, free: 8.082 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001731/0.5336, allocations: 39.42 kB / 478.4 MB, free: 8.043 MB / 362.7 MB Notification: Performance of SimCode: time 8.92e-07/0.5336, allocations: 3.938 kB / 478.4 MB, free: 8.039 MB / 362.7 MB Notification: Performance of Templates: time 0.01375/0.5474, allocations: 5.768 MB / 484.2 MB, free: 2.27 MB / 362.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.sim & ./Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TestOpenTank/TestOpenTank.csv","../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches