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.001475/0.001475, allocations: 181.4 kB / 13.66 MB, free: 1.664 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.964/1.964, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001103/0.001103, allocations: 94.62 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.254e-05/3.272e-05, allocations: 4 kB / 321.5 MB, free: 17.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09387/0.09394, allocations: 47.57 MB / 369.1 MB, free: 2.199 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3982/0.4922, allocations: 83.13 MB / 452.2 MB, free: 10.05 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003081/0.4926, allocations: 74.09 kB / 452.3 MB, free: 10.02 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03623/0.5289, allocations: 8.284 MB / 460.6 MB, free: 3.074 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.5289, allocations: 0 / 460.6 MB, free: 3.074 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.419e-05/0.529, allocations: 12 kB / 460.6 MB, free: 3.062 MB / 330.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.001129/0.5301, allocations: 0.5834 MB / 461.2 MB, free: 2.461 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.822e-05/0.5302, allocations: 8.031 kB / 461.2 MB, free: 2.453 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001423/0.5303, allocations: 51.47 kB / 461.2 MB, free: 2.402 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007353/0.5311, allocations: 335.2 kB / 461.6 MB, free: 2.062 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.368e-05/0.5311, allocations: 16.25 kB / 461.6 MB, free: 2.055 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.858e-05/0.5312, allocations: 15.88 kB / 461.6 MB, free: 2.043 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006106/0.5318, allocations: 290.8 kB / 461.9 MB, free: 1.785 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.812e-05/0.5319, allocations: 0 / 461.9 MB, free: 1.785 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.254e-05/0.5319, allocations: 11.62 kB / 461.9 MB, free: 1.781 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.5319, allocations: 4 kB / 461.9 MB, free: 1.777 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004141/0.5323, allocations: 147.5 kB / 462 MB, free: 1.68 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002067/0.5344, allocations: 0.8022 MB / 462.8 MB, free: 0.9883 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007074/0.5352, allocations: 204.5 kB / 463 MB, free: 0.832 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002125/0.5354, allocations: 83.41 kB / 463.1 MB, free: 0.7773 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.516e-05/0.5355, allocations: 3.984 kB / 463.1 MB, free: 0.7734 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003405/0.5358, allocations: 134.6 kB / 463.2 MB, free: 0.6602 MB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 3.106e-06/0.5358, allocations: 0 / 463.2 MB, free: 0.6602 MB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.000934/0.5368, allocations: 268.8 kB / 463.5 MB, free: 456 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001456/0.537, allocations: 316.4 kB / 463.8 MB, free: 64 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007658/0.5377, allocations: 381.2 kB / 464.2 MB, free: 15.75 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.961e-05/0.5378, allocations: 33.7 kB / 464.2 MB, free: 15.71 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002274/0.5381, allocations: 238.7 kB / 464.5 MB, free: 15.48 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001215/0.5382, allocations: 82.84 kB / 464.5 MB, free: 15.39 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.95e-05/0.5382, allocations: 4 kB / 464.5 MB, free: 15.39 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.5384, allocations: 322.8 kB / 464.9 MB, free: 15.07 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002058/0.5386, allocations: 67.97 kB / 464.9 MB, free: 15 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003394/0.539, allocations: 172.2 kB / 465.1 MB, free: 14.79 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002548/0.5392, allocations: 88.81 kB / 465.2 MB, free: 14.7 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.5393, allocations: 0 / 465.2 MB, free: 14.7 MB / 346.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008194/0.5401, allocations: 260.8 kB / 465.4 MB, free: 14.44 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.777e-05/0.5401, allocations: 12.09 kB / 465.4 MB, free: 14.43 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.109e-05/0.5402, allocations: 7.922 kB / 465.5 MB, free: 14.42 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003345/0.5405, allocations: 36.84 kB / 465.5 MB, free: 14.38 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00043/0.541, allocations: 51.97 kB / 465.5 MB, free: 14.33 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002072/0.543, allocations: 1.445 MB / 467 MB, free: 12.75 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004981/0.5436, allocations: 35.69 kB / 467 MB, free: 12.71 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.759e-05/0.5437, allocations: 4 kB / 467 MB, free: 12.71 MB / 346.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 () * 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.0002693/0.544, allocations: 133.8 kB / 467.2 MB, free: 12.57 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000198/0.5442, allocations: 43.52 kB / 467.2 MB, free: 12.53 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001527/0.5457, allocations: 287.5 kB / 467.5 MB, free: 12.25 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.547e-05/0.5458, allocations: 4 kB / 467.5 MB, free: 12.24 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.015e-05/0.5458, allocations: 3.953 kB / 467.5 MB, free: 12.24 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001253/0.5471, allocations: 0.5986 MB / 468.1 MB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002688/0.5499, allocations: 0.7314 MB / 468.8 MB, free: 10.74 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.576e-06/0.5499, allocations: 0 / 468.8 MB, free: 10.74 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007373/0.5507, allocations: 51.97 kB / 468.9 MB, free: 10.69 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.685e-05/0.5507, allocations: 3.953 kB / 468.9 MB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.376e-05/0.5508, allocations: 11.98 kB / 468.9 MB, free: 10.67 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.745e-06/0.5508, allocations: 0 / 468.9 MB, free: 10.67 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.5509, allocations: 0 / 468.9 MB, free: 10.67 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001527/0.5524, allocations: 414.8 kB / 469.3 MB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004473/0.5529, allocations: 148.6 kB / 469.4 MB, free: 10.09 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001272/0.5531, allocations: 11.95 kB / 469.4 MB, free: 10.07 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005435/0.5536, allocations: 16.06 kB / 469.5 MB, free: 10.06 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00011/0.5538, allocations: 15.97 kB / 469.5 MB, free: 10.04 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.834e-05/0.5539, allocations: 8 kB / 469.5 MB, free: 10.04 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0008548/0.5547, allocations: 305.2 kB / 469.8 MB, free: 9.738 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.42e-07/0.5548, allocations: 0 / 469.8 MB, free: 9.738 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001067/0.5559, allocations: 111.8 kB / 469.9 MB, free: 9.629 MB / 346.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) * 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.001427/0.5573, allocations: 402.1 kB / 470.3 MB, free: 9.238 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009589/0.5583, allocations: 303.1 kB / 470.6 MB, free: 8.93 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.725e-06/0.5583, allocations: 4 kB / 470.6 MB, free: 8.926 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002681/0.5586, allocations: 95.75 kB / 470.7 MB, free: 8.832 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008608/0.5595, allocations: 97.61 kB / 470.8 MB, free: 8.738 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001703/0.5612, allocations: 0.5869 MB / 471.4 MB, free: 8.117 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005069/0.5618, allocations: 0.804 MB / 472.2 MB, free: 7.285 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001863/0.562, allocations: 39.42 kB / 472.2 MB, free: 7.25 MB / 346.7 MB Notification: Performance of SimCode: time 2.985e-06/0.562, allocations: 0 / 472.2 MB, free: 7.25 MB / 346.7 MB Notification: Performance of Templates: time 0.01493/0.5769, allocations: 5.77 MB / 478 MB, free: 1.469 MB / 346.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