Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID.I.y|ductIn.mediums.1..T|ductIn.mediums.1..Xi.1.|ductIn.mediums.1..p|ductIn.mediums.2..T|ductIn.mediums.2..Xi.1.|ductIn.mediums.2..p|ductOut.mediums.1..T|ductOut.mediums.1..Xi.1.|ductOut.mediums.1..p|ductOut.mediums.2..T|ductOut.mediums.2..Xi.1.|ductOut.mediums.2..p|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls") translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID.I.y|ductIn.mediums.1..T|ductIn.mediums.1..Xi.1.|ductIn.mediums.1..p|ductIn.mediums.2..T|ductIn.mediums.2..Xi.1.|ductIn.mediums.2..p|ductOut.mediums.1..T|ductOut.mediums.1..Xi.1.|ductOut.mediums.1..p|ductOut.mediums.2..T|ductOut.mediums.2..Xi.1.|ductOut.mediums.2..p|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls") [: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 4.0.0+maint.om/package.mo): time 0.001082/0.001082, allocations: 186.3 kB / 8.136 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.17/1.17, allocations: 221.4 MB / 229.9 MB, free: 3.055 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009481/0.0009481, allocations: 95.44 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.44e-06/5.47e-06, allocations: 0 / 336.5 MB, free: 9.512 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1994/0.1994, allocations: 50.4 MB / 386.9 MB, free: 38.09 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.179/7.379, allocations: 3.573 GB / 3.951 GB, free: 124.7 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002825/7.379, allocations: 87.89 kB / 3.951 GB, free: 124.6 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.793/11.17, allocations: 0.8842 GB / 4.835 GB, free: 27.54 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002808/11.17, allocations: 83.56 kB / 4.836 GB, free: 27.52 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 829 * Number of variables: 829 Notification: Performance of Generate backend data structure: time 0.02489/11.2, allocations: 5.78 MB / 4.841 GB, free: 24.82 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.391e-05/11.2, allocations: 8.844 kB / 4.841 GB, free: 24.82 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002962/11.2, allocations: 415.2 kB / 4.842 GB, free: 24.64 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007526/11.21, allocations: 2.403 MB / 4.844 GB, free: 24.14 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000295/11.21, allocations: 262.6 kB / 4.844 GB, free: 24.01 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0011/11.21, allocations: 180 kB / 4.844 GB, free: 24.01 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009684/11.22, allocations: 5.278 MB / 4.849 GB, free: 23.99 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009718/11.23, allocations: 4.941 MB / 4.854 GB, free: 23.41 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.765e-05/11.23, allocations: 17.88 kB / 4.854 GB, free: 23.41 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005472/11.23, allocations: 9.656 kB / 4.854 GB, free: 23.41 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002614/11.23, allocations: 270.9 kB / 4.855 GB, free: 23.4 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03649/11.27, allocations: 20.78 MB / 4.875 GB, free: 13.8 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004529/11.27, allocations: 2.468 MB / 4.877 GB, free: 13.78 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003164/11.27, allocations: 2.214 MB / 4.879 GB, free: 13.75 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002042/11.28, allocations: 2.737 MB / 4.882 GB, free: 10.84 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003994/11.28, allocations: 2.584 MB / 4.885 GB, free: 10.59 MB / 490.7 MB Notification: Performance of pre-optimization done (n=311): time 6.382e-06/11.28, allocations: 0 / 4.885 GB, free: 10.59 MB / 490.7 MB Notification: Performance of matching and sorting (n=371): time 0.08155/11.36, allocations: 23.18 MB / 4.907 GB, free: 8.316 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001845/11.36, allocations: 0.596 MB / 4.908 GB, free: 7.625 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00289/11.36, allocations: 1.435 MB / 4.909 GB, free: 7.418 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001842/11.37, allocations: 29.3 kB / 4.909 GB, free: 7.387 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001586/11.37, allocations: 1.098 MB / 4.91 GB, free: 6.723 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002695/11.37, allocations: 1.249 MB / 4.912 GB, free: 5.906 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004518/11.37, allocations: 6.094 kB / 4.912 GB, free: 5.906 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003748/11.37, allocations: 481.2 kB / 4.912 GB, free: 5.59 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003918/11.38, allocations: 2.66 MB / 4.915 GB, free: 5.574 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005062/11.38, allocations: 3.635 MB / 4.918 GB, free: 3.613 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009747/11.39, allocations: 3.873 MB / 4.922 GB, free: 2.551 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.726e-05/11.39, allocations: 6.781 kB / 4.922 GB, free: 2.551 MB / 490.7 MB Notification: Performance of matching and sorting (n=535) (initialization): time 0.02516/11.42, allocations: 9.013 MB / 4.931 GB, free: 14.7 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.00534/11.42, allocations: 9.919 MB / 4.94 GB, free: 4.297 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.983e-05/11.42, allocations: 30.09 kB / 4.941 GB, free: 4.273 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006799/11.43, allocations: 1.979 MB / 4.942 GB, free: 2.824 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006822/11.43, allocations: 0.9103 MB / 4.943 GB, free: 2.098 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008712/11.44, allocations: 6.416 MB / 4.95 GB, free: 12.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00693/11.45, allocations: 429.3 kB / 4.95 GB, free: 11.99 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001325/11.45, allocations: 232.5 kB / 4.95 GB, free: 11.8 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/11.45, allocations: 4 kB / 4.95 GB, free: 11.79 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0221/11.47, allocations: 8.156 MB / 4.958 GB, free: 5.156 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001272/11.47, allocations: 31.5 kB / 4.958 GB, free: 5.129 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00588/11.48, allocations: 1.895 MB / 4.96 GB, free: 3.742 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005802/11.49, allocations: 0.9272 MB / 4.961 GB, free: 2.953 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3295/11.82, allocations: 6.235 MB / 4.967 GB, free: 83.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006739/11.82, allocations: 421.2 kB / 4.967 GB, free: 83.32 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001144/11.82, allocations: 224.3 kB / 4.968 GB, free: 83.32 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 112 * Number of states: 0 () * Number of discrete variables: 17 (traceVolume.ind,traceDuctIn.ind,traceDuctOut.ind,$whenCondition1,$PRE.numberOfPeople.nextTimeEvent,volume.regularFlow[1],volume.regularFlow[2],volume.regularFlow[3],volume.regularFlow[4],volume.inFlow[4],volume.inFlow[3],volume.inFlow[2],volume.inFlow[1],numberOfPeople.nextTimeEvent,$PRE.numberOfPeople.nextTimeEventScaled,numberOfPeople.nextTimeEventScaled,PID.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (494): * Single equations (assignments): 485 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {2 6,2 6,1 6,2 6,2 6,2 6} Notification: Performance of prepare postOptimizeDAE: time 0.001796/11.83, allocations: 222.4 kB / 4.968 GB, free: 83.21 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001086/11.83, allocations: 274.7 kB / 4.968 GB, free: 83.21 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01871/11.84, allocations: 8.451 MB / 4.976 GB, free: 82.95 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.84e-05/11.84, allocations: 44.47 kB / 4.976 GB, free: 82.95 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.504e-05/11.84, allocations: 0 / 4.976 GB, free: 82.95 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01279/11.86, allocations: 6.334 MB / 4.983 GB, free: 82.57 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03396/11.89, allocations: 14.1 MB / 4.996 GB, free: 81.64 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.142e-05/11.89, allocations: 2.656 kB / 4.996 GB, free: 81.64 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003755/11.9, allocations: 0.6762 MB / 4.997 GB, free: 81.64 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007856/11.9, allocations: 2.307 MB / 4.999 GB, free: 81.6 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007814/11.9, allocations: 133.7 kB / 4.999 GB, free: 81.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005949/11.91, allocations: 6.089 MB / 5.005 GB, free: 78.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.695e-06/11.91, allocations: 5.594 kB / 5.005 GB, free: 78.5 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0266/11.94, allocations: 11.91 MB / 5.017 GB, free: 77.91 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003921/11.94, allocations: 1.026 MB / 5.018 GB, free: 77.74 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001273/11.94, allocations: 75.3 kB / 5.018 GB, free: 77.74 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004379/11.95, allocations: 328.9 kB / 5.018 GB, free: 77.73 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005459/11.95, allocations: 226.5 kB / 5.019 GB, free: 77.72 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000486/11.95, allocations: 170.2 kB / 5.019 GB, free: 77.72 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.001756/11.95, allocations: 1.066 MB / 5.02 GB, free: 77.61 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01302/11.96, allocations: 2.92 MB / 5.023 GB, free: 77.61 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 21 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume.mC_scaled[1],ductOut.mCs_scaled[1,1],ductOut.mCs_scaled[2,1],ductOut.mediums[1].p,ductOut.mediums[1].Xi[1],ductOut.mediums[1].T,ductOut.mediums[2].p,ductOut.mediums[2].Xi[1],ductOut.mediums[2].T,PID.I.y,ductIn.mCs_scaled[1,1],ductIn.mCs_scaled[2,1],ductIn.mediums[1].p,ductIn.mediums[1].Xi[1],ductIn.mediums[1].T,ductIn.mediums[2].p,ductIn.mediums[2].Xi[1],ductIn.mediums[2].T) * Number of discrete variables: 3 ($whenCondition1,numberOfPeople.nextTimeEvent,numberOfPeople.nextTimeEventScaled) * Number of discrete states: 2 (numberOfPeople.nextTimeEvent,numberOfPeople.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (366): * Single equations (assignments): 354 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {2 6,2 6,2 6,2 6,2 6,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.009546/11.97, allocations: 3.241 MB / 5.026 GB, free: 77.37 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01792/11.99, allocations: 10.2 MB / 5.036 GB, free: 77.09 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.301e-05/11.99, allocations: 6.812 kB / 5.036 GB, free: 77.09 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00546/12, allocations: 3.123 MB / 5.039 GB, free: 77.07 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006653/12, allocations: 1.114 MB / 5.04 GB, free: 77.02 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02418/12.03, allocations: 8.927 MB / 5.049 GB, free: 75.83 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004625/12.03, allocations: 2.889 MB / 5.052 GB, free: 75.05 MB / 0.5105 GB Notification: Performance of SimCode: time 2.154e-06/12.03, allocations: 0 / 5.052 GB, free: 75.05 MB / 0.5105 GB Notification: Performance of Templates: time 0.5264/12.56, allocations: 136.6 MB / 5.185 GB, free: 84.13 MB / 0.5105 GB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/TraceSubstances/RoomCO2WithControls/RoomCO2WithControls.csv","../files/Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches