Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls") translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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 3.2.2+maint.om/package.mo): time 0.001764/0.001764, allocations: 188.8 kB / 8.132 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.21/1.21, allocations: 194.2 MB / 202.8 MB, free: 8.75 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001911/0.001912, allocations: 120 kB / 247.7 MB, free: 6.32 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.054e-05/1.057e-05, allocations: 3.938 kB / 297.6 MB, free: 8.016 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1123, allocations: 44.49 MB / 342.1 MB, free: 11.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.203/6.315, allocations: 3.685 GB / 4.019 GB, free: 107.1 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003104/6.315, allocations: 88.11 kB / 4.019 GB, free: 107 MB / 394.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Sources.mo:2346:7-2347:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$NumberOfPeople.getDerTableValue. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Sources.mo:2312:7-2313:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$NumberOfPeople.getTableValue. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Sources.mo:2358:7-2359:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$NumberOfPeople.getTableTimeTmin. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Sources.mo:2369:7-2370:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$NumberOfPeople.getTableTimeTmax. Notification: Performance of FrontEnd: time 3.274/9.59, allocations: 0.8977 GB / 4.917 GB, free: 13.79 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004476/9.59, allocations: 79.92 kB / 4.917 GB, free: 13.71 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: 822 * Number of variables: 822 Notification: Performance of Generate backend data structure: time 0.03018/9.62, allocations: 6 MB / 4.922 GB, free: 7.617 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.419e-05/9.62, allocations: 12.69 kB / 4.922 GB, free: 7.605 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004186/9.625, allocations: 419.5 kB / 4.923 GB, free: 7.191 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01115/9.636, allocations: 2.412 MB / 4.925 GB, free: 4.723 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006292/9.636, allocations: 256.5 kB / 4.925 GB, free: 4.445 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002481/9.639, allocations: 187.9 kB / 4.926 GB, free: 4.262 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.2628/9.902, allocations: 5.261 MB / 4.931 GB, free: 53.35 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01421/9.916, allocations: 4.909 MB / 4.936 GB, free: 52.8 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001134/9.916, allocations: 11.78 kB / 4.936 GB, free: 52.8 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006831/9.917, allocations: 6.281 kB / 4.936 GB, free: 52.8 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002501/9.917, allocations: 272.2 kB / 4.936 GB, free: 52.8 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03614/9.953, allocations: 20.64 MB / 4.956 GB, free: 43.51 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004963/9.958, allocations: 2.385 MB / 4.958 GB, free: 43.48 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00329/9.962, allocations: 2.173 MB / 4.96 GB, free: 43.46 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00202/9.964, allocations: 2.725 MB / 4.963 GB, free: 40.64 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004382/9.968, allocations: 2.495 MB / 4.966 GB, free: 40.43 MB / 458.7 MB Notification: Performance of pre-optimization done (n=310): time 6.122e-06/9.968, allocations: 0 / 4.966 GB, free: 40.43 MB / 458.7 MB Notification: Performance of matching and sorting (n=370): time 0.08707/10.06, allocations: 23.22 MB / 4.988 GB, free: 38.31 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001437/10.06, allocations: 463.6 kB / 4.989 GB, free: 37.8 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002654/10.06, allocations: 1.457 MB / 4.99 GB, free: 37.61 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00134/10.06, allocations: 36.58 kB / 4.99 GB, free: 37.58 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009352/10.06, allocations: 1.094 MB / 4.991 GB, free: 37.08 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001685/10.06, allocations: 1.253 MB / 4.992 GB, free: 36.43 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000352/10.06, allocations: 3.5 kB / 4.992 GB, free: 36.43 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002168/10.06, allocations: 481 kB / 4.993 GB, free: 36.12 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00375/10.07, allocations: 2.628 MB / 4.995 GB, free: 36.11 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004224/10.07, allocations: 3.611 MB / 4.999 GB, free: 35.04 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01464/10.09, allocations: 4.638 MB / 5.004 GB, free: 34.99 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.908e-05/10.09, allocations: 9.156 kB / 5.004 GB, free: 34.99 MB / 458.7 MB Notification: Performance of matching and sorting (n=544) (initialization): time 0.03088/10.12, allocations: 8.987 MB / 5.012 GB, free: 34.69 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003237/10.12, allocations: 10.79 MB / 5.023 GB, free: 39.62 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001448/10.12, allocations: 31.16 kB / 5.023 GB, free: 39.62 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006643/10.13, allocations: 1.967 MB / 5.025 GB, free: 39.57 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006017/10.13, allocations: 0.9216 MB / 5.026 GB, free: 39.57 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008806/10.14, allocations: 6.361 MB / 5.032 GB, free: 36.44 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007204/10.15, allocations: 435.9 kB / 5.032 GB, free: 36.43 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00208/10.15, allocations: 247.2 kB / 5.033 GB, free: 36.43 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/10.15, allocations: 4.219 kB / 5.033 GB, free: 36.43 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03107/10.18, allocations: 8.962 MB / 5.041 GB, free: 36.29 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001617/10.18, allocations: 31.66 kB / 5.041 GB, free: 36.29 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006129/10.19, allocations: 1.889 MB / 5.043 GB, free: 36.25 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005923/10.19, allocations: 0.9406 MB / 5.044 GB, free: 36.25 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007503/10.2, allocations: 6.166 MB / 5.05 GB, free: 33.12 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006739/10.21, allocations: 412.1 kB / 5.051 GB, free: 33.11 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001834/10.21, allocations: 239.9 kB / 5.051 GB, free: 33.11 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 122 * Number of states: 0 () * Number of discrete variables: 16 (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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (499): * Single equations (assignments): 489 * Array equations: 0 * Algorithm blocks: 4 * 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.002988/10.21, allocations: 217.8 kB / 5.051 GB, free: 33 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001746/10.22, allocations: 275.9 kB / 5.051 GB, free: 32.86 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0249/10.24, allocations: 8.277 MB / 5.059 GB, free: 32.57 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.371e-05/10.24, allocations: 43.41 kB / 5.059 GB, free: 32.57 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.773e-05/10.24, allocations: 2.938 kB / 5.059 GB, free: 32.57 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01774/10.26, allocations: 6.355 MB / 5.066 GB, free: 32.19 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04188/10.3, allocations: 13.48 MB / 5.079 GB, free: 28.38 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.069e-05/10.3, allocations: 6.375 kB / 5.079 GB, free: 28.38 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004694/10.3, allocations: 0.6765 MB / 5.079 GB, free: 28.35 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008902/10.31, allocations: 2.288 MB / 5.082 GB, free: 27.96 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00152/10.32, allocations: 138.9 kB / 5.082 GB, free: 27.93 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007404/10.32, allocations: 6.043 MB / 5.088 GB, free: 23.91 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.358e-05/10.32, allocations: 4.062 kB / 5.088 GB, free: 23.91 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02775/10.35, allocations: 10.92 MB / 5.098 GB, free: 20.21 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003794/10.35, allocations: 1.011 MB / 5.099 GB, free: 19.72 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001773/10.36, allocations: 82.08 kB / 5.099 GB, free: 19.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005012/10.36, allocations: 322.3 kB / 5.1 GB, free: 19.62 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009093/10.36, allocations: 236.2 kB / 5.1 GB, free: 19.49 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009546/10.36, allocations: 180.4 kB / 5.1 GB, free: 19.34 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.002272/10.37, allocations: 1.079 MB / 5.101 GB, free: 18.39 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01569/10.38, allocations: 2.997 MB / 5.104 GB, free: 15.79 MB / 474.7 MB 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 (365): * Single equations (assignments): 353 * 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.01134/10.39, allocations: 3.434 MB / 5.107 GB, free: 13.66 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02116/10.41, allocations: 10.2 MB / 5.117 GB, free: 4.746 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.712e-05/10.41, allocations: 3.938 kB / 5.117 GB, free: 4.746 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007925/10.42, allocations: 3.082 MB / 5.12 GB, free: 2.098 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007876/10.43, allocations: 1.089 MB / 5.121 GB, free: 1.348 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2645/10.69, allocations: 9.351 MB / 5.131 GB, free: 62.43 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004595/10.7, allocations: 2.919 MB / 5.133 GB, free: 61.65 MB / 474.7 MB Notification: Performance of SimCode: time 1.202e-06/10.7, allocations: 0 / 5.133 GB, free: 61.65 MB / 474.7 MB Notification: Performance of Templates: time 0.2035/10.9, allocations: 136.6 MB / 5.267 GB, free: 40.23 MB / 474.7 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe 2>&1)