Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.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.SimpleCooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|heatCapacitor.T|pipe.T",fileNamePrefix="Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|heatCapacitor.T|pipe.T",fileNamePrefix="Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001466/0.001466, allocations: 178.4 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.472/1.472, allocations: 205.3 MB / 214.4 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009963/0.0009962, allocations: 82.72 kB / 262.4 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.359e-05/1.361e-05, allocations: 0 / 315.5 MB, free: 22.72 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1082, allocations: 47.59 MB / 363.1 MB, free: 7.078 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4102/0.5184, allocations: 80.43 MB / 443.5 MB, free: 15.24 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002168/0.5186, allocations: 71.59 kB / 443.6 MB, free: 15.2 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02876/0.5474, allocations: 9.434 MB / 453 MB, free: 7.48 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.5475, allocations: 0 / 453 MB, free: 7.48 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.458e-05/0.5475, allocations: 19.05 kB / 453 MB, free: 7.465 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.0008838/0.5484, allocations: 0.67 MB / 453.7 MB, free: 6.77 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.5484, allocations: 12.03 kB / 453.7 MB, free: 6.758 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001062/0.5485, allocations: 63.34 kB / 453.8 MB, free: 6.695 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004782/0.549, allocations: 372.4 kB / 454.1 MB, free: 6.34 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.691e-05/0.5491, allocations: 46.83 kB / 454.2 MB, free: 6.285 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.805e-05/0.5492, allocations: 23.95 kB / 454.2 MB, free: 6.262 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004095/0.5496, allocations: 240.5 kB / 454.4 MB, free: 6.113 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000529/0.5501, allocations: 394.2 kB / 454.8 MB, free: 5.758 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.599e-05/0.5502, allocations: 0 / 454.8 MB, free: 5.758 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.144e-05/0.5502, allocations: 0 / 454.8 MB, free: 5.758 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.255e-05/0.5502, allocations: 12 kB / 454.8 MB, free: 5.746 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001803/0.552, allocations: 1.171 MB / 456 MB, free: 4.785 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009049/0.5529, allocations: 422.2 kB / 456.4 MB, free: 4.438 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000161/0.5531, allocations: 119.1 kB / 456.5 MB, free: 4.363 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.216e-05/0.5532, allocations: 7.531 kB / 456.5 MB, free: 4.359 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.526e-05/0.5532, allocations: 46.39 kB / 456.6 MB, free: 4.309 MB / 330.7 MB Notification: Performance of pre-optimization done (n=33): time 1.412e-06/0.5532, allocations: 0 / 456.6 MB, free: 4.309 MB / 330.7 MB Notification: Performance of matching and sorting (n=33): time 0.0005574/0.5538, allocations: 313.2 kB / 456.9 MB, free: 4.062 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001369/0.5539, allocations: 444.1 kB / 457.3 MB, free: 3.527 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002998/0.5542, allocations: 334.7 kB / 457.7 MB, free: 3.27 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.118e-05/0.5542, allocations: 25.7 kB / 457.7 MB, free: 3.238 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001181/0.5544, allocations: 248.5 kB / 457.9 MB, free: 3.055 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.032e-05/0.5544, allocations: 107.2 kB / 458 MB, free: 2.961 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.589e-05/0.5545, allocations: 0 / 458 MB, free: 2.961 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.5546, allocations: 350.6 kB / 458.4 MB, free: 2.625 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001287/0.5547, allocations: 91.31 kB / 458.5 MB, free: 2.574 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002117/0.5549, allocations: 225.6 kB / 458.7 MB, free: 2.355 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001693/0.5551, allocations: 112 kB / 458.8 MB, free: 2.289 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.5551, allocations: 4 kB / 458.8 MB, free: 2.285 MB / 330.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0005629/0.5557, allocations: 370.1 kB / 459.1 MB, free: 2 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.849e-05/0.5557, allocations: 29.7 kB / 459.2 MB, free: 1.965 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.5557, allocations: 0 / 459.2 MB, free: 1.965 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002553/0.556, allocations: 76.19 kB / 459.3 MB, free: 1.898 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003082/0.5563, allocations: 67.41 kB / 459.3 MB, free: 1.836 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002073/0.5584, allocations: 2.658 MB / 462 MB, free: 15.11 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002415/0.5587, allocations: 35.8 kB / 462 MB, free: 15.07 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.608e-05/0.5587, allocations: 11.38 kB / 462 MB, free: 15.07 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient2.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pipe.flowPort_a.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001667/0.5589, allocations: 120.8 kB / 462.1 MB, free: 14.94 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.102e-05/0.5589, allocations: 43.53 kB / 462.2 MB, free: 14.9 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.771e-05/0.559, allocations: 48.42 kB / 462.2 MB, free: 14.87 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.559, allocations: 4 kB / 462.2 MB, free: 14.86 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/0.559, allocations: 0 / 462.2 MB, free: 14.86 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005226/0.5596, allocations: 0.6205 MB / 462.9 MB, free: 14.2 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009458/0.5605, allocations: 0.8164 MB / 463.7 MB, free: 13.51 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.5605, allocations: 0 / 463.7 MB, free: 13.51 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003502/0.5609, allocations: 71.33 kB / 463.7 MB, free: 13.44 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.065e-06/0.5609, allocations: 12.02 kB / 463.8 MB, free: 13.43 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.001e-05/0.5609, allocations: 3.984 kB / 463.8 MB, free: 13.43 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.561, allocations: 4.094 kB / 463.8 MB, free: 13.42 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.561, allocations: 3.938 kB / 463.8 MB, free: 13.42 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005441/0.5615, allocations: 488.3 kB / 464.2 MB, free: 13.04 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001506/0.5617, allocations: 156.8 kB / 464.4 MB, free: 12.89 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.176e-05/0.5617, allocations: 0 / 464.4 MB, free: 12.89 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002213/0.562, allocations: 16.05 kB / 464.4 MB, free: 12.88 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.122e-05/0.562, allocations: 11.98 kB / 464.4 MB, free: 12.87 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.838e-05/0.562, allocations: 14.92 kB / 464.4 MB, free: 12.86 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002328/0.5623, allocations: 261.2 kB / 464.7 MB, free: 12.66 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5623, allocations: 0 / 464.7 MB, free: 12.66 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004/0.5627, allocations: 123.8 kB / 464.8 MB, free: 12.54 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (pipe.T,heatCapacitor.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 33 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001622/0.5629, allocations: 115.9 kB / 464.9 MB, free: 12.42 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007977/0.5637, allocations: 0.5222 MB / 465.4 MB, free: 11.95 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.5637, allocations: 0 / 465.4 MB, free: 11.95 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001527/0.5638, allocations: 120.5 kB / 465.6 MB, free: 11.87 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004764/0.5643, allocations: 111.9 kB / 465.7 MB, free: 11.79 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001079/0.5654, allocations: 0.5945 MB / 466.3 MB, free: 11.23 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004114/0.5658, allocations: 0.8276 MB / 467.1 MB, free: 10.37 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002012/0.566, allocations: 51.33 kB / 467.1 MB, free: 10.32 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.236e-05/0.5661, allocations: 43.3 kB / 467.2 MB, free: 10.28 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.5661, allocations: 0 / 467.2 MB, free: 10.28 MB / 346.7 MB Notification: Performance of Templates: time 0.01078/0.5769, allocations: 6.527 MB / 473.7 MB, free: 3.762 MB / 346.7 MB make -j1 -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.makefile (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.sim & ./Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/SimpleCooling/SimpleCooling.csv","../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches