Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_NumberOfRequests",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_NumberOfRequests",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/BuildingSystems 2.0.0-master/package.mo): time 0.7072/0.7072, allocations: 141.8 MB / 149.1 MB, free: 4.512 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001076/0.001075, allocations: 180.8 kB / 181.9 MB, free: 156 kB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.356/1.356, allocations: 221.3 MB / 436 MB, free: 9.312 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000934/0.000934, allocations: 100.7 kB / 0.507 GB, free: 24.23 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001751/0.001751, allocations: 273.2 kB / 0.5884 GB, free: 12.36 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1902/0.192, allocations: 89.63 MB / 0.676 GB, free: 2.641 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4504/0.6424, allocations: 82.77 MB / 0.7568 GB, free: 113 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1202/0.7626, allocations: 108.8 MB / 0.863 GB, free: 4.039 MB / 0.5263 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002475/0.7629, allocations: 72.45 kB / 0.8631 GB, free: 3.973 MB / 0.5263 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.005046/0.768, allocations: 1.677 MB / 0.8647 GB, free: 2.277 MB / 0.5263 GB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.7681, allocations: 9 kB / 0.8647 GB, free: 2.27 MB / 0.5263 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.031e-05/0.7681, allocations: 12.53 kB / 0.8648 GB, free: 2.258 MB / 0.5263 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002299/0.7684, allocations: 191.5 kB / 0.8649 GB, free: 2.031 MB / 0.5263 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.633e-05/0.7684, allocations: 0.5625 kB / 0.8649 GB, free: 2.031 MB / 0.5263 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.342e-05/0.7684, allocations: 8 kB / 0.865 GB, free: 2.023 MB / 0.5263 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001414/0.7686, allocations: 48.77 kB / 0.865 GB, free: 1.977 MB / 0.5263 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001507/0.7687, allocations: 89.66 kB / 0.8651 GB, free: 1.883 MB / 0.5263 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.7687, allocations: 0.5312 kB / 0.8651 GB, free: 1.883 MB / 0.5263 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.636e-05/0.7688, allocations: 3.156 kB / 0.8651 GB, free: 1.883 MB / 0.5263 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.7688, allocations: 7.984 kB / 0.8651 GB, free: 1.875 MB / 0.5263 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005052/0.7693, allocations: 326.5 kB / 0.8654 GB, free: 1.523 MB / 0.5263 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000121/0.7694, allocations: 78.55 kB / 0.8655 GB, free: 1.438 MB / 0.5263 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.555e-05/0.7695, allocations: 53.53 kB / 0.8655 GB, free: 1.383 MB / 0.5263 GB Notification: Performance of preOpt evalFunc (simulation): time 1.788e-05/0.7695, allocations: 0.5 kB / 0.8655 GB, free: 1.383 MB / 0.5263 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001237/0.7697, allocations: 92.66 kB / 0.8656 GB, free: 1.281 MB / 0.5263 GB Notification: Performance of pre-optimization done (n=6): time 1.883e-06/0.7697, allocations: 1.062 kB / 0.8656 GB, free: 1.281 MB / 0.5263 GB Notification: Performance of matching and sorting (n=6): time 0.0002295/0.7699, allocations: 109.5 kB / 0.8657 GB, free: 1.168 MB / 0.5263 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.607e-05/0.77, allocations: 82.05 kB / 0.8658 GB, free: 1.07 MB / 0.5263 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.111e-05/0.77, allocations: 113 kB / 0.8659 GB, free: 0.9531 MB / 0.5263 GB Notification: Performance of collectPreVariables (initialization): time 1.614e-05/0.7701, allocations: 26.23 kB / 0.8659 GB, free: 0.9219 MB / 0.5263 GB Notification: Performance of collectInitialEqns (initialization): time 3.33e-05/0.7701, allocations: 97.23 kB / 0.866 GB, free: 0.8242 MB / 0.5263 GB Notification: Performance of collectInitialBindings (initialization): time 1.74e-05/0.7701, allocations: 23.73 kB / 0.8661 GB, free: 0.8008 MB / 0.5263 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.097e-06/0.7701, allocations: 0 / 0.8661 GB, free: 0.8008 MB / 0.5263 GB Notification: Performance of setup shared object (initialization): time 5.706e-05/0.7702, allocations: 319.6 kB / 0.8664 GB, free: 492 kB / 0.5263 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.134e-05/0.7703, allocations: 43.98 kB / 0.8664 GB, free: 448 kB / 0.5263 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.401e-05/0.7703, allocations: 49.58 kB / 0.8664 GB, free: 400 kB / 0.5263 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.696e-05/0.7704, allocations: 21.48 kB / 0.8665 GB, free: 380 kB / 0.5263 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.7704, allocations: 4 kB / 0.8665 GB, free: 376 kB / 0.5263 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000167/0.7706, allocations: 113.5 kB / 0.8666 GB, free: 256 kB / 0.5263 GB Notification: Performance of prepare postOptimizeDAE: time 1.295e-05/0.7706, allocations: 12.8 kB / 0.8666 GB, free: 244 kB / 0.5263 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.048e-06/0.7706, allocations: 0 / 0.8666 GB, free: 244 kB / 0.5263 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.135e-05/0.7706, allocations: 1.062 kB / 0.8666 GB, free: 244 kB / 0.5263 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001336/0.7708, allocations: 25.3 kB / 0.8666 GB, free: 220 kB / 0.5263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.7708, allocations: 8 kB / 0.8666 GB, free: 212 kB / 0.5263 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001603/0.7709, allocations: 27.89 kB / 0.8667 GB, free: 184 kB / 0.5263 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.112e-05/0.771, allocations: 11.11 kB / 0.8667 GB, free: 176 kB / 0.5263 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,numReq.y,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 6 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.51e-05/0.7711, allocations: 144.1 kB / 0.8668 GB, free: 20 kB / 0.5263 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.751e-05/0.7711, allocations: 7.906 kB / 0.8668 GB, free: 12 kB / 0.5263 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.87e-05/0.7711, allocations: 8.375 kB / 0.8668 GB, free: 4 kB / 0.5263 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.7711, allocations: 4 kB / 0.8668 GB, free: 0 / 0.5263 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.838e-05/0.7712, allocations: 4.047 kB / 0.8668 GB, free: 15.99 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.7712, allocations: 3.938 kB / 0.8668 GB, free: 15.99 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001432/0.7714, allocations: 162 kB / 0.867 GB, free: 15.79 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.7714, allocations: 0 / 0.867 GB, free: 15.79 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.887e-05/0.7715, allocations: 19.98 kB / 0.867 GB, free: 15.77 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.918e-06/0.7715, allocations: 4 kB / 0.867 GB, free: 15.77 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.054e-05/0.7715, allocations: 7.984 kB / 0.867 GB, free: 15.76 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.7715, allocations: 0 / 0.867 GB, free: 15.76 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.7715, allocations: 3.938 kB / 0.867 GB, free: 15.76 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002108/0.7717, allocations: 136.9 kB / 0.8671 GB, free: 15.61 MB / 0.5419 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003131/0.7721, allocations: 0.5013 MB / 0.8676 GB, free: 15.08 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 3.877e-05/0.7721, allocations: 90.05 kB / 0.8677 GB, free: 14.98 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.238e-05/0.7722, allocations: 4 kB / 0.8677 GB, free: 14.97 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001737/0.7723, allocations: 31.97 kB / 0.8678 GB, free: 14.94 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001273/0.7725, allocations: 31.95 kB / 0.8678 GB, free: 14.91 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.33e-05/0.7725, allocations: 4.125 kB / 0.8678 GB, free: 14.91 MB / 0.5419 GB Notification: Performance of sort global known variables: time 5.579e-05/0.7726, allocations: 102.8 kB / 0.8679 GB, free: 14.81 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0007669/0.7733, allocations: 27.84 kB / 0.8679 GB, free: 14.78 MB / 0.5419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,numReq.y,pulse.T_start,pulse.count) * Number of discrete states: 2 (pulse.count,numReq.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001354/0.7735, allocations: 107.2 kB / 0.868 GB, free: 14.67 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.0002805/0.7738, allocations: 163.4 kB / 0.8682 GB, free: 14.49 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.7738, allocations: 0 / 0.8682 GB, free: 14.49 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001397/0.7739, allocations: 93.62 kB / 0.8683 GB, free: 14.39 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001789/0.7741, allocations: 12.55 kB / 0.8683 GB, free: 14.38 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004351/0.7746, allocations: 147.6 kB / 0.8684 GB, free: 14.21 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003399/0.7749, allocations: 0.7086 MB / 0.8691 GB, free: 13.48 MB / 0.5419 GB Notification: Performance of SimCode: time 2.6e-07/0.7749, allocations: 0 / 0.8691 GB, free: 13.48 MB / 0.5419 GB (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Controls_Continuous_Examples_NumberOfRequests_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Controls_Continuous_Examples_NumberOfRequests.fmu > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1)