Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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) 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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis",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/Buildings 10.0.0-master/package.mo): time 1.783/1.783, allocations: 390.4 MB / 397.7 MB, free: 10.64 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009427/0.0009427, allocations: 179.5 kB / 490.8 MB, free: 11.22 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.102/1.102, allocations: 221.4 MB / 0.7863 GB, free: 13.6 MB / 0.5886 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008428/0.0008428, allocations: 94.34 kB / 0.9264 GB, free: 4.539 MB / 0.6667 GB Notification: Performance of FrontEnd - loaded program: time 0.2275/0.2283, allocations: 149.2 MB / 1.072 GB, free: 15.46 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.495/0.7234, allocations: 143 MB / 1.212 GB, free: 155.9 MB / 0.8855 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1342/0.8576, allocations: 150 MB / 1.358 GB, free: 41.64 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001743/0.8578, allocations: 67.97 kB / 1.358 GB, free: 41.58 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.01115/0.869, allocations: 4.595 MB / 1.363 GB, free: 37.04 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 2.981e-05/0.869, allocations: 13.22 kB / 1.363 GB, free: 37.03 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.253e-05/0.8691, allocations: 27.72 kB / 1.363 GB, free: 37 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001109/0.8692, allocations: 194.6 kB / 1.363 GB, free: 36.77 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.676e-05/0.8692, allocations: 8.812 kB / 1.363 GB, free: 36.77 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.814e-05/0.8693, allocations: 12 kB / 1.363 GB, free: 36.75 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001133/0.8694, allocations: 59.83 kB / 1.363 GB, free: 36.7 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001472/0.8696, allocations: 109.5 kB / 1.363 GB, free: 36.57 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.8696, allocations: 6.188 kB / 1.363 GB, free: 36.57 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.385e-05/0.8696, allocations: 5.203 kB / 1.363 GB, free: 36.57 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.588e-06/0.8696, allocations: 0 / 1.363 GB, free: 36.57 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005745/0.8702, allocations: 0.6533 MB / 1.364 GB, free: 35.87 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002464/0.8704, allocations: 127.2 kB / 1.364 GB, free: 35.72 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.842e-05/0.8705, allocations: 47.42 kB / 1.364 GB, free: 35.67 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.356e-05/0.8705, allocations: 1 kB / 1.364 GB, free: 35.67 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001126/0.8707, allocations: 136 kB / 1.364 GB, free: 35.52 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=14): time 1.523e-06/0.8707, allocations: 0.7812 kB / 1.364 GB, free: 35.52 MB / 0.8855 GB Notification: Performance of matching and sorting (n=14): time 0.0002311/0.8709, allocations: 126.1 kB / 1.364 GB, free: 35.39 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.439e-05/0.8709, allocations: 112.2 kB / 1.364 GB, free: 35.25 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001116/0.8711, allocations: 166 kB / 1.364 GB, free: 35.08 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 3.336e-05/0.8711, allocations: 29.7 kB / 1.364 GB, free: 35.05 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 4.213e-05/0.8711, allocations: 108.9 kB / 1.365 GB, free: 34.94 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.694e-05/0.8712, allocations: 39.77 kB / 1.365 GB, free: 34.9 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.164e-05/0.8712, allocations: 0 / 1.365 GB, free: 34.9 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 3.981e-05/0.8713, allocations: 331.5 kB / 1.365 GB, free: 34.57 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001454/0.8714, allocations: 80.53 kB / 1.365 GB, free: 34.49 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001584/0.8716, allocations: 162.5 kB / 1.365 GB, free: 34.3 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003263/0.8719, allocations: 96.58 kB / 1.365 GB, free: 34.21 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.8719, allocations: 0 / 1.365 GB, free: 34.21 MB / 0.8855 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005788/0.8725, allocations: 283.8 kB / 1.366 GB, free: 33.93 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.017e-05/0.8725, allocations: 4 kB / 1.366 GB, free: 33.93 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.8725, allocations: 9.859 kB / 1.366 GB, free: 33.92 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.057e-05/0.8725, allocations: 0.625 kB / 1.366 GB, free: 33.92 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001004/0.8727, allocations: 28.05 kB / 1.366 GB, free: 33.89 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.1e-06/0.8727, allocations: 4 kB / 1.366 GB, free: 33.89 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000436/0.8731, allocations: 123.8 kB / 1.366 GB, free: 33.77 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.739e-05/0.8732, allocations: 12.61 kB / 1.366 GB, free: 33.76 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition3,$whenCondition4,$PRE.hysteresis1.y,hysteresis1.y,$PRE.pul.booPul.y,pul.booPul.y,$whenCondition1,$whenCondition2,$PRE.hysteresis2.y,hysteresis2.y,$PRE.pul1.booPul.y,pul1.booPul.y,$PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 17 * 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 7.033e-05/0.8732, allocations: 120.9 kB / 1.366 GB, free: 33.63 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.372e-05/0.8733, allocations: 15.81 kB / 1.366 GB, free: 33.62 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001157/0.8734, allocations: 74.77 kB / 1.366 GB, free: 33.54 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.8734, allocations: 0 / 1.366 GB, free: 33.54 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.8734, allocations: 4 kB / 1.366 GB, free: 33.54 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.8734, allocations: 3.906 kB / 1.366 GB, free: 33.53 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000132/0.8735, allocations: 220.6 kB / 1.366 GB, free: 33.28 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.8736, allocations: 0 / 1.366 GB, free: 33.28 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.252e-05/0.8736, allocations: 23.92 kB / 1.366 GB, free: 33.26 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.8737, allocations: 0 / 1.366 GB, free: 33.26 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.358e-05/0.8737, allocations: 8 kB / 1.366 GB, free: 33.25 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.8737, allocations: 0 / 1.366 GB, free: 33.25 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.8737, allocations: 0 / 1.366 GB, free: 33.25 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001671/0.8739, allocations: 190 kB / 1.366 GB, free: 33.03 MB / 0.8855 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001839/0.8741, allocations: 0.5569 MB / 1.367 GB, free: 32.43 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 2.617e-05/0.8741, allocations: 88.92 kB / 1.367 GB, free: 32.32 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.398e-05/0.8741, allocations: 11.89 kB / 1.367 GB, free: 32.31 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001282/0.8743, allocations: 23.98 kB / 1.367 GB, free: 32.29 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.325e-05/0.8743, allocations: 31.94 kB / 1.367 GB, free: 32.26 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.252e-05/0.8743, allocations: 4 kB / 1.367 GB, free: 32.25 MB / 0.8855 GB Notification: Performance of sort global known variables: time 6.58e-05/0.8744, allocations: 144 kB / 1.367 GB, free: 32.11 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0007915/0.8752, allocations: 47.98 kB / 1.367 GB, free: 32.07 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition3,$whenCondition4,hysteresis1.y,pul.booPul.y,$whenCondition1,$whenCondition2,hysteresis2.y,pul1.booPul.y,hysteresis.y) * Number of discrete states: 3 (hysteresis.y,hysteresis2.y,hysteresis1.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * 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.0001331/0.8754, allocations: 120.8 kB / 1.367 GB, free: 31.95 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0003036/0.8757, allocations: 227.3 kB / 1.368 GB, free: 31.71 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.8757, allocations: 0 / 1.368 GB, free: 31.71 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 9.373e-05/0.8758, allocations: 59.94 kB / 1.368 GB, free: 31.65 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002385/0.876, allocations: 41.55 kB / 1.368 GB, free: 31.61 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003655/0.8764, allocations: 193.8 kB / 1.368 GB, free: 31.39 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001594/0.8766, allocations: 0.7584 MB / 1.369 GB, free: 30.61 MB / 0.8855 GB Notification: Performance of SimCode: time 2.2e-07/0.8766, allocations: 0 / 1.369 GB, free: 30.61 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis_res.mat does not exist to compare? outputFormat=mat