Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|heatCapacitor1.T|heatCapacitor2.T|pipe1.T|pipe2.T|pipe3.T",fileNamePrefix="Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|heatCapacitor1.T|heatCapacitor2.T|pipe1.T|pipe2.T|pipe3.T",fileNamePrefix="Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001405/0.001405, allocations: 206.2 kB / 8.542 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.218/1.218, allocations: 225.5 MB / 234.4 MB, free: 3.387 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001033/0.001033, allocations: 92.44 kB / 286.3 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 7.474e-06/7.515e-06, allocations: 4 kB / 343.1 MB, free: 8.699 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1052, allocations: 51.48 MB / 394.6 MB, free: 5.172 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.292/0.3972, allocations: 81.66 MB / 476.3 MB, free: 11.07 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002674/0.3976, allocations: 69.61 kB / 476.3 MB, free: 11.05 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.03724/0.4348, allocations: 15.9 MB / 492.2 MB, free: 14.66 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.268e-05/0.4349, allocations: 19.98 kB / 492.3 MB, free: 14.64 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.001941/0.4368, allocations: 1.082 MB / 493.3 MB, free: 13.55 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.582e-05/0.4369, allocations: 11.42 kB / 493.3 MB, free: 13.55 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001939/0.4371, allocations: 114.8 kB / 493.5 MB, free: 13.43 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000876/0.438, allocations: 0.5403 MB / 494 MB, free: 12.94 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001672/0.4382, allocations: 134.4 kB / 494.1 MB, free: 12.79 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.992e-05/0.4382, allocations: 37.5 kB / 494.2 MB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000761/0.439, allocations: 476.6 kB / 494.6 MB, free: 12.46 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009765/0.44, allocations: 0.6971 MB / 495.3 MB, free: 11.83 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.491e-05/0.44, allocations: 0 / 495.3 MB, free: 11.83 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.045e-05/0.4401, allocations: 0 / 495.3 MB, free: 11.83 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.436e-05/0.4401, allocations: 16 kB / 495.3 MB, free: 11.82 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003292/0.4434, allocations: 1.997 MB / 497.3 MB, free: 10.26 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007695/0.4442, allocations: 446.2 kB / 497.8 MB, free: 9.98 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000557/0.4448, allocations: 342.6 kB / 498.1 MB, free: 9.77 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.113e-05/0.4448, allocations: 17.81 kB / 498.1 MB, free: 9.754 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.129e-05/0.4449, allocations: 47.97 kB / 498.2 MB, free: 9.707 MB / 362.7 MB Notification: Performance of pre-optimization done (n=74): time 1.823e-06/0.4449, allocations: 0 / 498.2 MB, free: 9.707 MB / 362.7 MB Notification: Performance of matching and sorting (n=74): time 0.002145/0.447, allocations: 0.8485 MB / 499 MB, free: 9.027 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004129/0.4474, allocations: 0.8268 MB / 499.9 MB, free: 8.008 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006212/0.4481, allocations: 0.4912 MB / 0.4886 GB, free: 7.637 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.357e-05/0.4482, allocations: 33.53 kB / 0.4886 GB, free: 7.602 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001396/0.4483, allocations: 228 kB / 0.4889 GB, free: 7.406 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001896/0.4485, allocations: 248.1 kB / 0.4891 GB, free: 7.191 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.199e-05/0.4485, allocations: 0 / 0.4891 GB, free: 7.191 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.4487, allocations: 388 kB / 0.4895 GB, free: 6.836 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003394/0.449, allocations: 204.8 kB / 0.4897 GB, free: 6.723 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005321/0.4496, allocations: 478.1 kB / 0.4901 GB, free: 6.281 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003793/0.45, allocations: 243.4 kB / 0.4904 GB, free: 6.137 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.45, allocations: 0 / 0.4904 GB, free: 6.137 MB / 362.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.00211/0.4521, allocations: 0.9063 MB / 0.4912 GB, free: 5.41 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/0.4521, allocations: 4 kB / 0.4912 GB, free: 5.406 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.4521, allocations: 0 / 0.4912 GB, free: 5.406 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006651/0.4528, allocations: 213.6 kB / 0.4914 GB, free: 5.238 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000718/0.4535, allocations: 152.8 kB / 0.4916 GB, free: 5.094 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006995/0.4605, allocations: 6.063 MB / 0.4975 GB, free: 14.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009651/0.4615, allocations: 103.3 kB / 0.4976 GB, free: 14.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.73e-05/0.4616, allocations: 28.06 kB / 0.4976 GB, free: 14.64 MB / 378.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: pipe1.flowPort_b.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pipe1.flowPort_a.h:VARIABLE(flow=false unit = "J/kg" ) type: Real ambient1.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {3 3,1 3,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002757/0.4619, allocations: 131.9 kB / 0.4978 GB, free: 14.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001408/0.462, allocations: 87.05 kB / 0.4978 GB, free: 14.42 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002126/0.4623, allocations: 79.73 kB / 0.4979 GB, free: 14.33 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.326e-06/0.4623, allocations: 8 kB / 0.4979 GB, free: 14.32 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.001e-05/0.4623, allocations: 3.906 kB / 0.4979 GB, free: 14.32 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002028/0.4643, allocations: 1.142 MB / 0.4991 GB, free: 13.06 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003406/0.4677, allocations: 1.745 MB / 0.5008 GB, free: 11.26 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.4678, allocations: 0 / 0.5008 GB, free: 11.26 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007958/0.4686, allocations: 151.8 kB / 0.5009 GB, free: 11.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004447/0.469, allocations: 166.5 kB / 0.5011 GB, free: 10.94 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.451e-05/0.4691, allocations: 4.203 kB / 0.5011 GB, free: 10.94 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005555/0.4746, allocations: 4.634 MB / 0.5056 GB, free: 5.965 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.141e-06/0.4747, allocations: 7.844 kB / 0.5056 GB, free: 5.957 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003098/0.4778, allocations: 1.234 MB / 0.5068 GB, free: 4.699 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005724/0.4784, allocations: 241.2 kB / 0.507 GB, free: 4.445 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001503/0.4785, allocations: 4 kB / 0.507 GB, free: 4.441 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007017/0.4793, allocations: 47.95 kB / 0.5071 GB, free: 4.395 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001393/0.4794, allocations: 48.58 kB / 0.5071 GB, free: 4.348 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.411e-05/0.4795, allocations: 20 kB / 0.5071 GB, free: 4.328 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0006093/0.4801, allocations: 399.1 kB / 0.5075 GB, free: 3.945 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001035/0.4811, allocations: 259.6 kB / 0.5078 GB, free: 3.691 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (pipe1.T,pipe2.T,pipe3.T,heatCapacitor1.T,heatCapacitor2.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 59 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,1 3,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.000269/0.4814, allocations: 111.6 kB / 0.5079 GB, free: 3.57 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002323/0.4837, allocations: 1.131 MB / 0.509 GB, free: 2.383 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.4838, allocations: 0 / 0.509 GB, free: 2.383 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001157/0.4849, allocations: 0.6717 MB / 0.5096 GB, free: 1.68 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008639/0.4858, allocations: 186 kB / 0.5098 GB, free: 1.508 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002587/0.4884, allocations: 1.215 MB / 0.511 GB, free: 276 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006921/0.4891, allocations: 1.025 MB / 0.512 GB, free: 15.22 MB / 394.7 MB Notification: Performance of SimCode: time 3.6e-07/0.4891, allocations: 4 kB / 0.512 GB, free: 15.22 MB / 394.7 MB Notification: Performance of Templates: time 0.02558/0.5147, allocations: 14.9 MB / 0.5266 GB, free: 0.6289 MB / 394.7 MB make -j1 -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.makefile (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & ./Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches