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: translateModel(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests") translateModel(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests") [: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.691/0.691, allocations: 141.8 MB / 149.1 MB, free: 3.922 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.001119/0.001119, allocations: 177.2 kB / 181.9 MB, free: 15.64 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.278/1.278, allocations: 221.4 MB / 436 MB, free: 8.742 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.000886/0.0008859, allocations: 96.58 kB / 0.507 GB, free: 24.2 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001715/0.001715, allocations: 277.6 kB / 0.5884 GB, free: 11.81 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 7.544e-06/7.675e-06, allocations: 0 / 0.6759 GB, free: 2.188 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3798/0.3798, allocations: 82.75 MB / 0.7567 GB, free: 112.4 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1074/0.4872, allocations: 108.8 MB / 0.8629 GB, free: 3.457 MB / 0.5263 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001802/0.4874, allocations: 73.52 kB / 0.863 GB, free: 3.387 MB / 0.5263 GB Notification: Performance of FrontEnd: time 0.004229/0.4917, allocations: 1.244 MB / 0.8642 GB, free: 2.184 MB / 0.5263 GB Notification: Performance of Transformations before backend: time 9.598e-06/0.4917, allocations: 0 / 0.8642 GB, free: 2.184 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.0004961/0.4922, allocations: 437.9 kB / 0.8646 GB, free: 1.703 MB / 0.5263 GB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/0.4923, allocations: 9.844 kB / 0.8646 GB, free: 1.695 MB / 0.5263 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.859e-05/0.4923, allocations: 12.59 kB / 0.8647 GB, free: 1.684 MB / 0.5263 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002007/0.4925, allocations: 199 kB / 0.8648 GB, free: 1.449 MB / 0.5263 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.85e-05/0.4926, allocations: 4.531 kB / 0.8649 GB, free: 1.445 MB / 0.5263 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.343e-05/0.4926, allocations: 9.062 kB / 0.8649 GB, free: 1.438 MB / 0.5263 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001437/0.4927, allocations: 47.98 kB / 0.8649 GB, free: 1.391 MB / 0.5263 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001333/0.4929, allocations: 90.31 kB / 0.865 GB, free: 1.297 MB / 0.5263 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.4929, allocations: 1.688 kB / 0.865 GB, free: 1.297 MB / 0.5263 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.632e-05/0.4929, allocations: 4.703 kB / 0.865 GB, free: 1.293 MB / 0.5263 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.574e-06/0.4929, allocations: 4 kB / 0.865 GB, free: 1.289 MB / 0.5263 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000491/0.4934, allocations: 318 kB / 0.8653 GB, free: 0.9453 MB / 0.5263 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001084/0.4936, allocations: 71.84 kB / 0.8654 GB, free: 0.8672 MB / 0.5263 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.74e-05/0.4936, allocations: 56.88 kB / 0.8654 GB, free: 0.8086 MB / 0.5263 GB Notification: Performance of preOpt evalFunc (simulation): time 1.386e-05/0.4937, allocations: 1.312 kB / 0.8654 GB, free: 0.8086 MB / 0.5263 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000112/0.4938, allocations: 96.69 kB / 0.8655 GB, free: 0.7031 MB / 0.5263 GB Notification: Performance of pre-optimization done (n=6): time 1.924e-06/0.4938, allocations: 0 / 0.8655 GB, free: 0.7031 MB / 0.5263 GB Notification: Performance of matching and sorting (n=6): time 0.0002085/0.494, allocations: 113.5 kB / 0.8656 GB, free: 0.5859 MB / 0.5263 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.016e-05/0.494, allocations: 86.11 kB / 0.8657 GB, free: 496 kB / 0.5263 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.406e-05/0.4941, allocations: 113 kB / 0.8658 GB, free: 376 kB / 0.5263 GB Notification: Performance of collectPreVariables (initialization): time 1.573e-05/0.4941, allocations: 25.7 kB / 0.8658 GB, free: 344 kB / 0.5263 GB Notification: Performance of collectInitialEqns (initialization): time 2.801e-05/0.4942, allocations: 104 kB / 0.8659 GB, free: 236 kB / 0.5263 GB Notification: Performance of collectInitialBindings (initialization): time 1.557e-05/0.4942, allocations: 11.89 kB / 0.866 GB, free: 224 kB / 0.5263 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.066e-05/0.4942, allocations: 8 kB / 0.866 GB, free: 216 kB / 0.5263 GB Notification: Performance of setup shared object (initialization): time 7.665e-05/0.4943, allocations: 314.8 kB / 0.8663 GB, free: 15.89 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.392e-05/0.4944, allocations: 51.97 kB / 0.8663 GB, free: 15.84 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.006e-05/0.4945, allocations: 42.53 kB / 0.8664 GB, free: 15.8 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.354e-05/0.4945, allocations: 23.98 kB / 0.8664 GB, free: 15.78 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.4945, allocations: 0 / 0.8664 GB, free: 15.78 MB / 0.5419 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002175/0.4947, allocations: 125.5 kB / 0.8665 GB, free: 15.65 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.4948, allocations: 8 kB / 0.8665 GB, free: 15.64 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.05e-06/0.4948, allocations: 0 / 0.8665 GB, free: 15.64 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.242e-05/0.4948, allocations: 0 / 0.8665 GB, free: 15.64 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001356/0.4949, allocations: 15.98 kB / 0.8665 GB, free: 15.62 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.895e-06/0.495, allocations: 4 kB / 0.8665 GB, free: 15.62 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001725/0.4951, allocations: 35.88 kB / 0.8666 GB, free: 15.59 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.596e-05/0.4952, allocations: 8 kB / 0.8666 GB, free: 15.58 MB / 0.5419 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 0.0001132/0.4953, allocations: 134.7 kB / 0.8667 GB, free: 15.43 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.183e-05/0.4953, allocations: 11.91 kB / 0.8667 GB, free: 15.42 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.112e-05/0.4954, allocations: 13.02 kB / 0.8667 GB, free: 15.41 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.4954, allocations: 7.938 kB / 0.8667 GB, free: 15.4 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.4954, allocations: 0 / 0.8667 GB, free: 15.4 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.4954, allocations: 0 / 0.8667 GB, free: 15.4 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001457/0.4955, allocations: 166.1 kB / 0.8669 GB, free: 15.2 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.4955, allocations: 7.922 kB / 0.8669 GB, free: 15.2 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.652e-05/0.4956, allocations: 19.98 kB / 0.8669 GB, free: 15.18 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.4957, allocations: 5.219 kB / 0.8669 GB, free: 15.17 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.364e-05/0.4957, allocations: 0 / 0.8669 GB, free: 15.17 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.4957, allocations: 0 / 0.8669 GB, free: 15.17 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.4957, allocations: 0 / 0.8669 GB, free: 15.17 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001916/0.4959, allocations: 136.9 kB / 0.867 GB, free: 15.02 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.249e-05/0.4959, allocations: 81.09 kB / 0.8671 GB, free: 14.92 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.25e-05/0.496, allocations: 7.906 kB / 0.8671 GB, free: 14.91 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001587/0.4961, allocations: 36.09 kB / 0.8672 GB, free: 14.88 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001189/0.4963, allocations: 39.95 kB / 0.8672 GB, free: 14.84 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.227e-05/0.4963, allocations: 4 kB / 0.8672 GB, free: 14.84 MB / 0.5419 GB Notification: Performance of sort global known variables: time 5.732e-05/0.4964, allocations: 95.28 kB / 0.8673 GB, free: 14.74 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0002058/0.4966, allocations: 23.94 kB / 0.8673 GB, free: 14.72 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.000147/0.4967, allocations: 111.2 kB / 0.8674 GB, free: 14.6 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.0002472/0.497, allocations: 164 kB / 0.8676 GB, free: 14.43 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.497, allocations: 0 / 0.8676 GB, free: 14.43 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001277/0.4971, allocations: 89.69 kB / 0.8677 GB, free: 14.34 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001632/0.4973, allocations: 18.19 kB / 0.8677 GB, free: 14.32 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003848/0.4977, allocations: 143.5 kB / 0.8678 GB, free: 14.16 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000279/0.498, allocations: 0.7036 MB / 0.8685 GB, free: 13.43 MB / 0.5419 GB Notification: Performance of SimCode: time 2.31e-07/0.498, allocations: 4 kB / 0.8685 GB, free: 13.42 MB / 0.5419 GB Notification: Performance of Templates: time 0.003689/0.5017, allocations: 1.599 MB / 0.8701 GB, free: 11.86 MB / 0.5419 GB make -j1 -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.makefile (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 & ./BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1)