Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.Continuous.Examples.OffTimer.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.OffTimer,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_OffTimer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Controls.Continuous.Examples.OffTimer,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_OffTimer",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.7383/0.7383, allocations: 141.8 MB / 149.1 MB, free: 4.445 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.001129/0.001129, allocations: 186.1 kB / 181.9 MB, free: 96 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.294/1.294, allocations: 221.3 MB / 436 MB, free: 9.289 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.0009767/0.0009765, allocations: 98.47 kB / 0.507 GB, free: 24.15 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001757/0.001757, allocations: 272.3 kB / 0.5884 GB, free: 12.27 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1882/0.19, allocations: 89.64 MB / 0.676 GB, free: 2.547 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4319/0.6219, allocations: 82.76 MB / 0.7568 GB, free: 112.8 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1196/0.7416, allocations: 108.5 MB / 0.8627 GB, free: 4.195 MB / 0.5263 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000181/0.7418, allocations: 75.89 kB / 0.8628 GB, free: 4.125 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.002921/0.7448, allocations: 1.162 MB / 0.8639 GB, free: 2.938 MB / 0.5263 GB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.7448, allocations: 18.22 kB / 0.864 GB, free: 2.922 MB / 0.5263 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.526e-05/0.7449, allocations: 0 / 0.864 GB, free: 2.922 MB / 0.5263 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000102/0.745, allocations: 182.8 kB / 0.8641 GB, free: 2.703 MB / 0.5263 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.439e-05/0.745, allocations: 0 / 0.8641 GB, free: 2.703 MB / 0.5263 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.5e-05/0.745, allocations: 4 kB / 0.8641 GB, free: 2.699 MB / 0.5263 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.9e-05/0.7451, allocations: 20 kB / 0.8642 GB, free: 2.68 MB / 0.5263 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.447e-05/0.7452, allocations: 48.94 kB / 0.8642 GB, free: 2.629 MB / 0.5263 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.235e-06/0.7452, allocations: 0 / 0.8642 GB, free: 2.629 MB / 0.5263 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.213e-05/0.7452, allocations: 9.172 kB / 0.8642 GB, free: 2.621 MB / 0.5263 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.7452, allocations: 0 / 0.8642 GB, free: 2.621 MB / 0.5263 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003341/0.7456, allocations: 268.4 kB / 0.8645 GB, free: 2.324 MB / 0.5263 GB Notification: Performance of preOpt comSubExp (simulation): time 8.158e-05/0.7456, allocations: 51.41 kB / 0.8645 GB, free: 2.266 MB / 0.5263 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.775e-05/0.7457, allocations: 25.7 kB / 0.8645 GB, free: 2.238 MB / 0.5263 GB Notification: Performance of preOpt evalFunc (simulation): time 1.135e-05/0.7457, allocations: 1.562 kB / 0.8645 GB, free: 2.238 MB / 0.5263 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.942e-05/0.7458, allocations: 63.44 kB / 0.8646 GB, free: 2.164 MB / 0.5263 GB Notification: Performance of pre-optimization done (n=9): time 1.233e-06/0.7458, allocations: 0 / 0.8646 GB, free: 2.164 MB / 0.5263 GB Notification: Performance of matching and sorting (n=9): time 0.0001457/0.7459, allocations: 70.25 kB / 0.8647 GB, free: 2.09 MB / 0.5263 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.449e-05/0.746, allocations: 59.89 kB / 0.8647 GB, free: 2.02 MB / 0.5263 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.848e-05/0.746, allocations: 97.55 kB / 0.8648 GB, free: 1.918 MB / 0.5263 GB Notification: Performance of collectPreVariables (initialization): time 1.358e-05/0.7461, allocations: 30.27 kB / 0.8648 GB, free: 1.883 MB / 0.5263 GB Notification: Performance of collectInitialEqns (initialization): time 2.176e-05/0.7461, allocations: 84.73 kB / 0.8649 GB, free: 1.797 MB / 0.5263 GB Notification: Performance of collectInitialBindings (initialization): time 2.044e-05/0.7461, allocations: 27.69 kB / 0.865 GB, free: 1.77 MB / 0.5263 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.608e-06/0.7461, allocations: 4.031 kB / 0.865 GB, free: 1.77 MB / 0.5263 GB Notification: Performance of setup shared object (initialization): time 4.567e-05/0.7462, allocations: 314.8 kB / 0.8653 GB, free: 1.453 MB / 0.5263 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.803e-05/0.7462, allocations: 16.75 kB / 0.8653 GB, free: 1.438 MB / 0.5263 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.813e-05/0.7462, allocations: 44.84 kB / 0.8653 GB, free: 1.383 MB / 0.5263 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.115e-05/0.7463, allocations: 16.78 kB / 0.8653 GB, free: 1.367 MB / 0.5263 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.7463, allocations: 0.5312 kB / 0.8653 GB, free: 1.367 MB / 0.5263 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001045/0.7464, allocations: 82.05 kB / 0.8654 GB, free: 1.281 MB / 0.5263 GB Notification: Performance of prepare postOptimizeDAE: time 1.247e-05/0.7464, allocations: 12.03 kB / 0.8654 GB, free: 1.273 MB / 0.5263 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.7464, allocations: 0 / 0.8654 GB, free: 1.273 MB / 0.5263 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/0.7464, allocations: 0 / 0.8654 GB, free: 1.273 MB / 0.5263 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.112e-05/0.7465, allocations: 16.58 kB / 0.8654 GB, free: 1.258 MB / 0.5263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.7465, allocations: 4 kB / 0.8654 GB, free: 1.254 MB / 0.5263 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.952e-05/0.7466, allocations: 21.94 kB / 0.8655 GB, free: 1.234 MB / 0.5263 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.524e-06/0.7466, allocations: 4 kB / 0.8655 GB, free: 1.23 MB / 0.5263 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$whenCondition3,$whenCondition2,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,not1.y,$PRE.offTim1.entryTime,offTim1.entryTime,$PRE.offTim2.entryTime,offTim2.entryTime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * 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 5.592e-05/0.7467, allocations: 106.6 kB / 0.8656 GB, free: 1.121 MB / 0.5263 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.146e-05/0.7467, allocations: 7.906 kB / 0.8656 GB, free: 1.113 MB / 0.5263 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.862e-05/0.7467, allocations: 16.08 kB / 0.8656 GB, free: 1.098 MB / 0.5263 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-06/0.7467, allocations: 0 / 0.8656 GB, free: 1.098 MB / 0.5263 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.7468, allocations: 0 / 0.8656 GB, free: 1.098 MB / 0.5263 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.7468, allocations: 0 / 0.8656 GB, free: 1.098 MB / 0.5263 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002707/0.747, allocations: 322.9 kB / 0.8659 GB, free: 0.7383 MB / 0.5263 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-06/0.747, allocations: 0 / 0.8659 GB, free: 0.7383 MB / 0.5263 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.531e-05/0.7471, allocations: 7.984 kB / 0.8659 GB, free: 0.7305 MB / 0.5263 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.7471, allocations: 3.469 kB / 0.8659 GB, free: 0.7305 MB / 0.5263 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.735e-06/0.7471, allocations: 0 / 0.8659 GB, free: 0.7305 MB / 0.5263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.305e-06/0.7471, allocations: 7.906 kB / 0.8659 GB, free: 0.7227 MB / 0.5263 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.7471, allocations: 0 / 0.8659 GB, free: 0.7227 MB / 0.5263 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.462e-05/0.7472, allocations: 167.4 kB / 0.8661 GB, free: 0.543 MB / 0.5263 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001552/0.7474, allocations: 0.5388 MB / 0.8666 GB, free: 15.98 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 3.448e-05/0.7474, allocations: 77.11 kB / 0.8667 GB, free: 15.89 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.612e-05/0.7474, allocations: 4 kB / 0.8667 GB, free: 15.89 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.212e-05/0.7475, allocations: 7.984 kB / 0.8667 GB, free: 15.88 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.562e-05/0.7476, allocations: 11.89 kB / 0.8667 GB, free: 15.86 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.322e-06/0.7476, allocations: 8 kB / 0.8667 GB, free: 15.86 MB / 0.5419 GB Notification: Performance of sort global known variables: time 3.553e-05/0.7476, allocations: 79.56 kB / 0.8668 GB, free: 15.78 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0007779/0.7484, allocations: 12 kB / 0.8668 GB, free: 15.77 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: 7 (not1.y,$whenCondition3,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,offTim1.entryTime,offTim2.entryTime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001105/0.7485, allocations: 107.3 kB / 0.8669 GB, free: 15.65 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.0001086/0.7487, allocations: 47.94 kB / 0.8669 GB, free: 15.61 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.7487, allocations: 0 / 0.8669 GB, free: 15.61 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 5.099e-05/0.7487, allocations: 23.94 kB / 0.867 GB, free: 15.58 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002176/0.7489, allocations: 16.89 kB / 0.867 GB, free: 15.57 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004172/0.7494, allocations: 99.77 kB / 0.8671 GB, free: 15.45 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003345/0.7497, allocations: 0.7075 MB / 0.8678 GB, free: 14.71 MB / 0.5419 GB Notification: Performance of SimCode: time 2.51e-07/0.7497, allocations: 1.688 kB / 0.8678 GB, free: 14.71 MB / 0.5419 GB (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.OffTimer.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.OffTimer.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.OffTimer.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.OffTimer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Controls_Continuous_Examples_OffTimer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Controls_Continuous_Examples_OffTimer.fmu > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.OffTimer.pipe 2>&1)