Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.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.Fluid.Examples.TraceSubstances.RoomCO2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2") translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2") [: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.001475/0.001475, allocations: 203.2 kB / 8.541 MB, free: 1.738 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.258/1.258, allocations: 225.5 MB / 234.4 MB, free: 3.359 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009509/0.0009509, allocations: 93.84 kB / 286.3 MB, free: 5.246 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.841e-06/5.881e-06, allocations: 0 / 343.1 MB, free: 8.695 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1127, allocations: 51.48 MB / 394.6 MB, free: 5.168 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.501/8.614, allocations: 3.545 GB / 3.93 GB, free: 134.7 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003471/8.615, allocations: 89.3 kB / 3.93 GB, free: 134.7 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.498/11.11, allocations: 0.5283 GB / 4.459 GB, free: 31.06 MB / 458.7 MB Notification: Performance of Transformations before backend: time 8.494e-05/11.11, allocations: 26.19 kB / 4.459 GB, free: 31.05 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 228 * Number of variables: 228 Notification: Performance of Generate backend data structure: time 0.01658/11.13, allocations: 2.901 MB / 4.462 GB, free: 29.62 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.2e-05/11.13, allocations: 6.719 kB / 4.462 GB, free: 29.62 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001251/11.13, allocations: 129.1 kB / 4.462 GB, free: 29.56 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00211/11.13, allocations: 0.7311 MB / 4.462 GB, free: 29.29 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001496/11.13, allocations: 104.6 kB / 4.462 GB, free: 29.22 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001667/11.13, allocations: 52.53 kB / 4.463 GB, free: 29.22 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002352/11.14, allocations: 1.313 MB / 4.464 GB, free: 29.21 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002104/11.14, allocations: 1.316 MB / 4.465 GB, free: 28.99 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.644e-05/11.14, allocations: 5.219 kB / 4.465 GB, free: 28.99 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001138/11.14, allocations: 1.562 kB / 4.465 GB, free: 28.99 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.742e-05/11.14, allocations: 70.75 kB / 4.465 GB, free: 28.99 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009376/11.15, allocations: 6.422 MB / 4.471 GB, free: 25.48 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001199/11.15, allocations: 0.6246 MB / 4.472 GB, free: 25.46 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000694/11.15, allocations: 480 kB / 4.472 GB, free: 25.45 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001101/11.15, allocations: 1.304 MB / 4.474 GB, free: 24.05 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.251e-05/11.15, allocations: 45.03 kB / 4.474 GB, free: 24.01 MB / 458.7 MB Notification: Performance of pre-optimization done (n=78): time 5.741e-06/11.15, allocations: 2.531 kB / 4.474 GB, free: 24.01 MB / 458.7 MB Notification: Performance of matching and sorting (n=90): time 0.01638/11.17, allocations: 4.152 MB / 4.478 GB, free: 23.53 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.068e-05/11.17, allocations: 110.1 kB / 4.478 GB, free: 23.41 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008624/11.17, allocations: 0.5504 MB / 4.479 GB, free: 23.27 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001341/11.17, allocations: 29.42 kB / 4.479 GB, free: 23.24 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002526/11.17, allocations: 419.5 kB / 4.479 GB, free: 22.96 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003035/11.17, allocations: 309.5 kB / 4.479 GB, free: 22.77 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.056e-05/11.17, allocations: 0 / 4.479 GB, free: 22.77 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000168/11.17, allocations: 390.9 kB / 4.48 GB, free: 22.46 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008685/11.17, allocations: 0.5444 MB / 4.48 GB, free: 22.45 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001049/11.17, allocations: 0.8867 MB / 4.481 GB, free: 22.07 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003335/11.17, allocations: 1.037 MB / 4.482 GB, free: 22.05 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.554e-06/11.17, allocations: 3.625 kB / 4.482 GB, free: 22.05 MB / 458.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.004947/11.18, allocations: 1.981 MB / 4.484 GB, free: 21.95 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001132/11.18, allocations: 3.917 MB / 4.488 GB, free: 17.88 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.127e-05/11.18, allocations: 11.69 kB / 4.488 GB, free: 17.88 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001132/11.18, allocations: 244.7 kB / 4.488 GB, free: 17.87 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001197/11.18, allocations: 274 kB / 4.488 GB, free: 17.87 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00107/11.18, allocations: 0.8643 MB / 4.489 GB, free: 33.35 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001578/11.19, allocations: 95.28 kB / 4.489 GB, free: 33.34 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000195/11.19, allocations: 75.69 kB / 4.489 GB, free: 33.34 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.317e-05/11.19, allocations: 3.531 kB / 4.489 GB, free: 33.34 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005027/11.19, allocations: 1.827 MB / 4.491 GB, free: 33.31 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.692e-05/11.19, allocations: 10.59 kB / 4.491 GB, free: 33.31 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009908/11.19, allocations: 241.3 kB / 4.491 GB, free: 33.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001203/11.19, allocations: 270.8 kB / 4.492 GB, free: 33.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0013/11.19, allocations: 0.8648 MB / 4.492 GB, free: 32.78 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001515/11.2, allocations: 77.95 kB / 4.492 GB, free: 32.77 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002028/11.2, allocations: 69.52 kB / 4.493 GB, free: 32.77 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 6 (traceVolume.ind,traceSource.ind,volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (147): * Single equations (assignments): 144 * Array equations: 0 * Algorithm blocks: 2 * 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 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0006176/11.2, allocations: 147.7 kB / 4.493 GB, free: 32.66 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002901/11.2, allocations: 85.31 kB / 4.493 GB, free: 32.62 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005686/11.2, allocations: 1.92 MB / 4.495 GB, free: 32.5 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.659e-05/11.2, allocations: 10.91 kB / 4.495 GB, free: 32.5 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.017e-06/11.2, allocations: 0 / 4.495 GB, free: 32.5 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.829e-05/11.2, allocations: 6.422 kB / 4.495 GB, free: 32.5 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01096/11.21, allocations: 3.834 MB / 4.498 GB, free: 31.71 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.55e-05/11.21, allocations: 2.688 kB / 4.498 GB, free: 31.71 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009958/11.21, allocations: 183.1 kB / 4.499 GB, free: 31.71 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001508/11.22, allocations: 316.6 kB / 4.499 GB, free: 31.7 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001161/11.22, allocations: 29.08 kB / 4.499 GB, free: 31.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001232/11.22, allocations: 0.8383 MB / 4.5 GB, free: 31.17 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.959e-06/11.22, allocations: 6.75 kB / 4.5 GB, free: 31.17 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005789/11.22, allocations: 2.469 MB / 4.502 GB, free: 30.63 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001008/11.22, allocations: 322.9 kB / 4.502 GB, free: 30.49 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001953/11.22, allocations: 14.56 kB / 4.502 GB, free: 30.49 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001069/11.23, allocations: 65.09 kB / 4.503 GB, free: 30.49 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001335/11.23, allocations: 65.5 kB / 4.503 GB, free: 30.49 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001422/11.23, allocations: 56.42 kB / 4.503 GB, free: 30.49 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.000705/11.23, allocations: 423.8 kB / 4.503 GB, free: 30.4 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006161/11.23, allocations: 1.244 MB / 4.504 GB, free: 30.18 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 4 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume.mC_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.007198/11.24, allocations: 2.113 MB / 4.506 GB, free: 29.75 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.006085/11.25, allocations: 2.315 MB / 4.509 GB, free: 29.53 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.455e-05/11.25, allocations: 1.594 kB / 4.509 GB, free: 29.53 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001617/11.25, allocations: 0.6485 MB / 4.509 GB, free: 29.5 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002697/11.25, allocations: 384.6 kB / 4.51 GB, free: 29.48 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00607/11.26, allocations: 2.057 MB / 4.512 GB, free: 29.04 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001384/11.26, allocations: 1.269 MB / 4.513 GB, free: 28.32 MB / 474.7 MB Notification: Performance of SimCode: time 1.052e-06/11.26, allocations: 0 / 4.513 GB, free: 28.32 MB / 474.7 MB Notification: Performance of Templates: time 0.09113/11.35, allocations: 45.49 MB / 4.557 GB, free: 17.27 MB / 474.7 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.sim & ./Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/TraceSubstances/RoomCO2/RoomCO2.csv","../files/Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches