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: "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_TraceSubstances_RoomCO2WithControls",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_TraceSubstances_RoomCO2WithControls",fmuType="me",version="2.0",platforms={"static"}) [: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.0009819/0.0009819, allocations: 182 kB / 8.129 MB, free: 2.219 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.252/1.252, allocations: 221.4 MB / 229.9 MB, free: 3.047 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.0009827/0.0009827, allocations: 106.3 kB / 280.8 MB, free: 1.285 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09846/0.09948, allocations: 55.81 MB / 336.6 MB, free: 9.465 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2048/0.3043, allocations: 50.39 MB / 387 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.147/5.452, allocations: 3.573 GB / 3.951 GB, free: 123.5 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002304/5.452, allocations: 88.11 kB / 3.951 GB, free: 123.4 MB / 442.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 2.91/8.362, allocations: 0.8899 GB / 4.841 GB, free: 25.49 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/8.362, allocations: 9.406 kB / 4.841 GB, free: 25.49 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003073/8.365, allocations: 422.5 kB / 4.842 GB, free: 25.3 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008122/8.373, allocations: 2.398 MB / 4.844 GB, free: 24.81 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003966/8.374, allocations: 258.2 kB / 4.844 GB, free: 24.68 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00158/8.375, allocations: 184.6 kB / 4.844 GB, free: 24.68 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00965/8.385, allocations: 5.272 MB / 4.85 GB, free: 24.66 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01132/8.396, allocations: 4.944 MB / 4.854 GB, free: 24.08 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001722/8.396, allocations: 20.27 kB / 4.854 GB, free: 24.08 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001202/8.398, allocations: 11.55 kB / 4.854 GB, free: 24.08 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002366/8.398, allocations: 271 kB / 4.855 GB, free: 24.07 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03614/8.434, allocations: 20.77 MB / 4.875 GB, free: 14.47 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004325/8.438, allocations: 2.469 MB / 4.877 GB, free: 14.45 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003205/8.442, allocations: 2.22 MB / 4.88 GB, free: 14.41 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00187/8.443, allocations: 2.73 MB / 4.882 GB, free: 11.5 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004491/8.448, allocations: 2.585 MB / 4.885 GB, free: 11.25 MB / 490.7 MB Notification: Performance of pre-optimization done (n=311): time 7.644e-06/8.448, allocations: 0 / 4.885 GB, free: 11.25 MB / 490.7 MB Notification: Performance of matching and sorting (n=371): time 0.08021/8.528, allocations: 23.17 MB / 4.907 GB, free: 8.973 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001382/8.528, allocations: 0.6007 MB / 4.908 GB, free: 8.281 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002587/8.531, allocations: 1.434 MB / 4.909 GB, free: 8.074 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000934/8.532, allocations: 29.2 kB / 4.909 GB, free: 8.043 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008384/8.533, allocations: 1.093 MB / 4.91 GB, free: 7.379 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00144/8.534, allocations: 1.254 MB / 4.912 GB, free: 6.562 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005695/8.535, allocations: 10.72 kB / 4.912 GB, free: 6.559 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002451/8.535, allocations: 482.7 kB / 4.912 GB, free: 6.246 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003664/8.539, allocations: 2.661 MB / 4.915 GB, free: 5.938 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003994/8.543, allocations: 3.627 MB / 4.918 GB, free: 3.91 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008365/8.551, allocations: 3.873 MB / 4.922 GB, free: 2.844 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.512e-05/8.551, allocations: 5.938 kB / 4.922 GB, free: 2.844 MB / 490.7 MB Notification: Performance of matching and sorting (n=535) (initialization): time 0.04002/8.591, allocations: 9.316 MB / 4.931 GB, free: 14.7 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.005071/8.596, allocations: 9.919 MB / 4.941 GB, free: 4.301 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.178e-05/8.596, allocations: 25.22 kB / 4.941 GB, free: 4.277 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006675/8.603, allocations: 1.978 MB / 4.943 GB, free: 2.828 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005243/8.608, allocations: 0.9186 MB / 4.944 GB, free: 2.055 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00856/8.617, allocations: 6.407 MB / 4.95 GB, free: 12.23 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006062/8.623, allocations: 437.5 kB / 4.95 GB, free: 11.94 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001402/8.625, allocations: 231.4 kB / 4.951 GB, free: 11.75 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/8.625, allocations: 4.625 kB / 4.951 GB, free: 11.74 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02134/8.646, allocations: 8.159 MB / 4.959 GB, free: 5.105 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.163e-05/8.646, allocations: 24 kB / 4.959 GB, free: 5.082 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006091/8.652, allocations: 1.889 MB / 4.96 GB, free: 3.699 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005446/8.658, allocations: 0.9275 MB / 4.961 GB, free: 2.906 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2017/8.859, allocations: 6.184 MB / 4.967 GB, free: 83.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006176/8.866, allocations: 409.8 kB / 4.968 GB, free: 83.25 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007945/8.866, allocations: 227.2 kB / 4.968 GB, free: 83.25 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.001254/8.868, allocations: 229.9 kB / 4.968 GB, free: 83.14 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007248/8.868, allocations: 272.8 kB / 4.968 GB, free: 83.14 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0163/8.885, allocations: 8.442 MB / 4.977 GB, free: 82.88 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.54e-05/8.885, allocations: 48.88 kB / 4.977 GB, free: 82.88 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.302e-05/8.885, allocations: 3.625 kB / 4.977 GB, free: 82.88 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01249/8.897, allocations: 6.33 MB / 4.983 GB, free: 82.5 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03363/8.931, allocations: 14.1 MB / 4.997 GB, free: 81.57 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.938e-05/8.931, allocations: 4.125 kB / 4.997 GB, free: 81.57 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004071/8.935, allocations: 0.6748 MB / 4.997 GB, free: 81.57 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008209/8.943, allocations: 2.306 MB / 5 GB, free: 81.53 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009999/8.944, allocations: 134.8 kB / 5 GB, free: 81.53 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005883/8.95, allocations: 6.09 MB / 5.006 GB, free: 78.43 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.843e-06/8.95, allocations: 7.516 kB / 5.006 GB, free: 78.43 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02879/8.979, allocations: 11.9 MB / 5.017 GB, free: 77.84 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03451/9.014, allocations: 16.38 MB / 5.033 GB, free: 76.75 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003568/9.017, allocations: 1.023 MB / 5.034 GB, free: 76.52 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001599/9.019, allocations: 80.88 kB / 5.034 GB, free: 76.52 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00464/9.024, allocations: 324.3 kB / 5.035 GB, free: 76.51 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008138/9.024, allocations: 230.7 kB / 5.035 GB, free: 76.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007413/9.025, allocations: 170.4 kB / 5.035 GB, free: 76.5 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.002079/9.027, allocations: 1.063 MB / 5.036 GB, free: 76.39 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0154/9.043, allocations: 3.61 MB / 5.04 GB, free: 76.39 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.008577/9.051, allocations: 3.244 MB / 5.043 GB, free: 76.14 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01643/9.068, allocations: 10.2 MB / 5.053 GB, free: 75.85 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.046e-05/9.068, allocations: 7.859 kB / 5.053 GB, free: 75.85 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005685/9.074, allocations: 3.124 MB / 5.056 GB, free: 75.83 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006995/9.081, allocations: 1.114 MB / 5.057 GB, free: 75.79 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02325/9.104, allocations: 8.966 MB / 5.066 GB, free: 74.59 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004798/9.109, allocations: 2.979 MB / 5.069 GB, free: 73.8 MB / 0.5105 GB Notification: Performance of SimCode: time 9.32e-07/9.109, allocations: 0 / 5.069 GB, free: 73.8 MB / 0.5105 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_TraceSubstances_RoomCO2WithControls_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_TraceSubstances_RoomCO2WithControls.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe 2>&1)