Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.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: "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_TraceSubstances_RoomCO2WithControls",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.0009155/0.0009155, allocations: 179.5 kB / 8.477 MB, free: 1.883 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.056/1.056, allocations: 205.2 MB / 214.1 MB, free: 5.172 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.0008747/0.0008747, allocations: 93.92 kB / 262.1 MB, free: 5.203 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.159/0.1599, allocations: 52.96 MB / 315.1 MB, free: 41.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06857/0.2285, allocations: 47.58 MB / 362.6 MB, free: 9.883 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.822/5.051, allocations: 3.632 GB / 3.986 GB, free: 146.6 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001979/5.051, allocations: 86.58 kB / 3.987 GB, free: 146.5 MB / 426.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.738/7.789, allocations: 0.9076 GB / 4.894 GB, free: 23.91 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/7.789, allocations: 11.72 kB / 4.894 GB, free: 23.91 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002677/7.792, allocations: 415.5 kB / 4.895 GB, free: 23.73 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006853/7.798, allocations: 2.423 MB / 4.897 GB, free: 23.23 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003031/7.799, allocations: 255 kB / 4.897 GB, free: 23.1 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001449/7.8, allocations: 188.9 kB / 4.897 GB, free: 23.09 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008887/7.809, allocations: 5.28 MB / 4.903 GB, free: 23.08 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00712/7.816, allocations: 4.966 MB / 4.907 GB, free: 22.5 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.139e-05/7.816, allocations: 4.375 kB / 4.907 GB, free: 22.5 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000395/7.817, allocations: 8.5 kB / 4.907 GB, free: 22.5 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001775/7.817, allocations: 275 kB / 4.908 GB, free: 22.49 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02535/7.842, allocations: 20.81 MB / 4.928 GB, free: 12.88 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0033/7.846, allocations: 2.478 MB / 4.93 GB, free: 12.86 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002428/7.848, allocations: 2.226 MB / 4.933 GB, free: 12.82 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001578/7.85, allocations: 2.686 MB / 4.935 GB, free: 10.01 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003013/7.853, allocations: 2.599 MB / 4.938 GB, free: 9.75 MB / 474.7 MB Notification: Performance of pre-optimization done (n=311): time 4.729e-06/7.853, allocations: 0 / 4.938 GB, free: 9.75 MB / 474.7 MB Notification: Performance of matching and sorting (n=371): time 0.07359/7.926, allocations: 23.46 MB / 4.961 GB, free: 7.457 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001186/7.926, allocations: 0.5961 MB / 4.961 GB, free: 6.766 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002232/7.929, allocations: 1.488 MB / 4.963 GB, free: 6.559 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001078/7.93, allocations: 33.41 kB / 4.963 GB, free: 6.527 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008814/7.931, allocations: 1.092 MB / 4.964 GB, free: 5.867 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001454/7.932, allocations: 1.264 MB / 4.965 GB, free: 4.98 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003406/7.932, allocations: 0 / 4.965 GB, free: 4.98 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001974/7.933, allocations: 482.7 kB / 4.965 GB, free: 4.602 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003796/7.936, allocations: 2.662 MB / 4.968 GB, free: 3.676 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004915/7.941, allocations: 3.631 MB / 4.972 GB, free: 1.641 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01674/7.958, allocations: 4.916 MB / 4.976 GB, free: 15.64 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-05/7.958, allocations: 9.531 kB / 4.976 GB, free: 15.64 MB / 490.7 MB Notification: Performance of matching and sorting (n=535) (initialization): time 0.02659/7.985, allocations: 9.622 MB / 4.986 GB, free: 8 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002865/7.988, allocations: 9.952 MB / 4.996 GB, free: 13.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.973e-05/7.988, allocations: 25.09 kB / 4.996 GB, free: 13.58 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006109/7.994, allocations: 1.987 MB / 4.998 GB, free: 12.12 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005051/7.999, allocations: 0.9174 MB / 4.998 GB, free: 11.34 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007295/8.006, allocations: 6.414 MB / 5.005 GB, free: 5.477 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00545/8.012, allocations: 425.4 kB / 5.005 GB, free: 5.199 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008573/8.013, allocations: 245.6 kB / 5.005 GB, free: 4.988 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.091e-05/8.013, allocations: 7.5 kB / 5.005 GB, free: 4.984 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.201/8.214, allocations: 9.327 MB / 5.014 GB, free: 79.03 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.516e-05/8.214, allocations: 24.38 kB / 5.014 GB, free: 79.03 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005292/8.219, allocations: 1.9 MB / 5.016 GB, free: 78.98 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004638/8.224, allocations: 0.928 MB / 5.017 GB, free: 78.98 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005335/8.229, allocations: 6.192 MB / 5.023 GB, free: 75.89 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004801/8.234, allocations: 414.4 kB / 5.024 GB, free: 75.89 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005872/8.235, allocations: 240.4 kB / 5.024 GB, free: 75.89 MB / 0.4948 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.001104/8.236, allocations: 212.7 kB / 5.024 GB, free: 75.78 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000627/8.236, allocations: 279.3 kB / 5.024 GB, free: 75.78 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01507/8.251, allocations: 8.376 MB / 5.033 GB, free: 75.51 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.953e-05/8.252, allocations: 44.52 kB / 5.033 GB, free: 75.51 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.379e-05/8.252, allocations: 3.062 kB / 5.033 GB, free: 75.51 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01158/8.263, allocations: 6.441 MB / 5.039 GB, free: 75.13 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03034/8.293, allocations: 14.23 MB / 5.053 GB, free: 74.21 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.689e-05/8.294, allocations: 3.906 kB / 5.053 GB, free: 74.21 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00356/8.297, allocations: 0.6818 MB / 5.053 GB, free: 74.21 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007861/8.305, allocations: 2.305 MB / 5.056 GB, free: 74.16 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007155/8.306, allocations: 137.2 kB / 5.056 GB, free: 74.16 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005466/8.311, allocations: 6.099 MB / 5.062 GB, free: 71.07 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/8.311, allocations: 2.438 kB / 5.062 GB, free: 71.07 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02414/8.335, allocations: 12.03 MB / 5.074 GB, free: 70.47 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02812/8.364, allocations: 16.5 MB / 5.09 GB, free: 69.34 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002384/8.366, allocations: 1.035 MB / 5.091 GB, free: 69.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007459/8.367, allocations: 71.56 kB / 5.091 GB, free: 69.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003382/8.37, allocations: 327.6 kB / 5.091 GB, free: 69.09 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000459/8.371, allocations: 228.1 kB / 5.091 GB, free: 69.09 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003989/8.371, allocations: 183.9 kB / 5.091 GB, free: 69.09 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.00133/8.372, allocations: 1.11 MB / 5.092 GB, free: 68.98 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01128/8.384, allocations: 3.742 MB / 5.096 GB, free: 68.98 MB / 0.4948 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.007474/8.391, allocations: 3.471 MB / 5.1 GB, free: 68.67 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01429/8.405, allocations: 10.22 MB / 5.11 GB, free: 68.38 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.107e-06/8.405, allocations: 4.641 kB / 5.11 GB, free: 68.38 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004469/8.41, allocations: 3.141 MB / 5.113 GB, free: 68.35 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005397/8.415, allocations: 1.102 MB / 5.114 GB, free: 68.31 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01611/8.431, allocations: 9.017 MB / 5.122 GB, free: 67.1 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003502/8.435, allocations: 3.026 MB / 5.125 GB, free: 66.32 MB / 0.4948 GB Notification: Performance of SimCode: time 6.61e-07/8.435, allocations: 3.188 kB / 5.125 GB, free: 66.32 MB / 0.4948 GB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_TraceSubstances_RoomCO2WithControls_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_TraceSubstances_RoomCO2WithControls.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe 2>&1)