Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.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.Integers.Validation.OnCounter,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter",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.781/1.781, allocations: 390.4 MB / 397.7 MB, free: 10.75 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.001086/0.001086, allocations: 184.3 kB / 490.8 MB, free: 13.31 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.109/1.109, allocations: 221.4 MB / 0.7863 GB, free: 2.707 MB / 0.573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008599/0.0008599, allocations: 94 kB / 0.9264 GB, free: 40.05 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 0.2171/0.218, allocations: 149.2 MB / 1.072 GB, free: 3.145 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4801/0.6981, allocations: 143 MB / 1.212 GB, free: 63.54 MB / 0.7761 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1518/0.85, allocations: 149.4 MB / 1.358 GB, free: 7.59 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001743/0.8502, allocations: 79.94 kB / 1.358 GB, free: 7.512 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.008255/0.8584, allocations: 3.043 MB / 1.361 GB, free: 4.41 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.093e-05/0.8585, allocations: 8 kB / 1.361 GB, free: 4.402 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.111e-05/0.8585, allocations: 8 kB / 1.361 GB, free: 4.395 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.671e-05/0.8586, allocations: 171 kB / 1.361 GB, free: 4.188 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.696e-05/0.8587, allocations: 0 / 1.361 GB, free: 4.188 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.347e-05/0.8587, allocations: 8 kB / 1.361 GB, free: 4.18 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.742e-05/0.8587, allocations: 15.94 kB / 1.361 GB, free: 4.164 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.818e-05/0.8588, allocations: 45.67 kB / 1.361 GB, free: 4.113 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.841e-06/0.8588, allocations: 8 kB / 1.361 GB, free: 4.105 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.05e-05/0.8589, allocations: 3.906 kB / 1.361 GB, free: 4.102 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.607e-06/0.8589, allocations: 0 / 1.361 GB, free: 4.102 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003965/0.8593, allocations: 325.4 kB / 1.361 GB, free: 3.746 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 6.653e-05/0.8593, allocations: 38.58 kB / 1.361 GB, free: 3.699 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.576e-05/0.8594, allocations: 16.84 kB / 1.361 GB, free: 3.68 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 3.787e-06/0.8594, allocations: 7.938 kB / 1.361 GB, free: 3.672 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.234e-05/0.8595, allocations: 75.33 kB / 1.361 GB, free: 3.586 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=9): time 1.223e-06/0.8595, allocations: 0 / 1.361 GB, free: 3.586 MB / 0.8542 GB Notification: Performance of matching and sorting (n=9): time 0.0001761/0.8597, allocations: 81.53 kB / 1.361 GB, free: 3.5 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.297e-05/0.8597, allocations: 55.41 kB / 1.361 GB, free: 3.434 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.025e-05/0.8598, allocations: 122.5 kB / 1.362 GB, free: 3.309 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 2.931e-05/0.8598, allocations: 29.7 kB / 1.362 GB, free: 3.273 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 4.84e-05/0.8599, allocations: 92.36 kB / 1.362 GB, free: 3.176 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 1.616e-05/0.8599, allocations: 19.8 kB / 1.362 GB, free: 3.156 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.867e-05/0.8599, allocations: 4 kB / 1.362 GB, free: 3.152 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 7.839e-05/0.86, allocations: 318.8 kB / 1.362 GB, free: 2.832 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001099/0.8601, allocations: 52 kB / 1.362 GB, free: 2.781 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001236/0.8602, allocations: 97.98 kB / 1.362 GB, free: 2.664 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003064/0.8605, allocations: 83.86 kB / 1.362 GB, free: 2.582 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.8606, allocations: 3.906 kB / 1.362 GB, free: 2.578 MB / 0.8542 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005356/0.8611, allocations: 213.4 kB / 1.362 GB, free: 2.363 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.012e-05/0.8611, allocations: 7.938 kB / 1.362 GB, free: 2.355 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.8611, allocations: 4 kB / 1.362 GB, free: 2.352 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.04e-05/0.8611, allocations: 96 / 1.362 GB, free: 2.352 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.025e-05/0.8612, allocations: 7.984 kB / 1.362 GB, free: 2.344 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.8612, allocations: 4 kB / 1.362 GB, free: 2.34 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003358/0.8615, allocations: 80.09 kB / 1.363 GB, free: 2.262 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.529e-05/0.8616, allocations: 15.98 kB / 1.363 GB, free: 2.246 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.onCounter.y,onCounter.y,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition2,$PRE.reset.y,reset.y,$whenCondition1,$PRE.booPul.y,booPul.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 10 * 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.595e-05/0.8617, allocations: 120.8 kB / 1.363 GB, free: 2.121 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.432e-05/0.8617, allocations: 7.906 kB / 1.363 GB, free: 2.113 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.81e-05/0.8617, allocations: 12.36 kB / 1.363 GB, free: 2.102 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.8617, allocations: 0 / 1.363 GB, free: 2.102 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.8617, allocations: 0 / 1.363 GB, free: 2.102 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.8617, allocations: 0 / 1.363 GB, free: 2.102 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002248/0.862, allocations: 315 kB / 1.363 GB, free: 1.75 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.862, allocations: 4 kB / 1.363 GB, free: 1.746 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.729e-06/0.862, allocations: 4 kB / 1.363 GB, free: 1.742 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.862, allocations: 0 / 1.363 GB, free: 1.742 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.115e-05/0.862, allocations: 4 kB / 1.363 GB, free: 1.738 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.862, allocations: 3.938 kB / 1.363 GB, free: 1.734 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.862, allocations: 4 kB / 1.363 GB, free: 1.73 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000125/0.8622, allocations: 175.4 kB / 1.363 GB, free: 1.543 MB / 0.8542 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002203/0.8624, allocations: 0.5467 MB / 1.364 GB, free: 0.9766 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 3.146e-05/0.8624, allocations: 85.02 kB / 1.364 GB, free: 0.875 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.188e-05/0.8625, allocations: 7.891 kB / 1.364 GB, free: 0.8672 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.752e-05/0.8625, allocations: 0 / 1.364 GB, free: 0.8672 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.5e-05/0.8625, allocations: 4 kB / 1.364 GB, free: 0.8633 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.004e-05/0.8626, allocations: 7.984 kB / 1.364 GB, free: 0.8555 MB / 0.8542 GB Notification: Performance of sort global known variables: time 3.413e-05/0.8626, allocations: 87.28 kB / 1.364 GB, free: 0.7695 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0008579/0.8635, allocations: 43.92 kB / 1.364 GB, free: 0.7266 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition2,$whenCondition1,onCounter.y,booPul.y,reset.y) * Number of discrete states: 1 (onCounter.y) * 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.0001262/0.8636, allocations: 112.8 kB / 1.364 GB, free: 0.6094 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0002445/0.8638, allocations: 171.2 kB / 1.364 GB, free: 440 kB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.8639, allocations: 0 / 1.364 GB, free: 440 kB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 4.428e-05/0.8639, allocations: 28 kB / 1.364 GB, free: 412 kB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002122/0.8641, allocations: 18.52 kB / 1.364 GB, free: 396 kB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002214/0.8644, allocations: 107.4 kB / 1.364 GB, free: 268 kB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002045/0.8646, allocations: 0.7036 MB / 1.365 GB, free: 15.53 MB / 0.8698 GB Notification: Performance of SimCode: time 2.4e-07/0.8646, allocations: 0 / 1.365 GB, free: 15.53 MB / 0.8698 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.mat does not exist to compare? outputFormat=mat