Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Logical.Validation.Timer.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.Obsolete.Controls.OBC.CDL.Logical.Validation.Timer,fileNamePrefix="Buildings_latest_Buildings_Obsolete_Controls_OBC_CDL_Logical_Validation_Timer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Obsolete.Controls.OBC.CDL.Logical.Validation.Timer,fileNamePrefix="Buildings_latest_Buildings_Obsolete_Controls_OBC_CDL_Logical_Validation_Timer",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.943/1.943, allocations: 390.4 MB / 397.7 MB, free: 11.27 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001313/0.001313, allocations: 184 kB / 490.8 MB, free: 1.941 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.337/1.337, allocations: 221.4 MB / 0.7863 GB, free: 13.73 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009504/0.0009506, allocations: 95.75 kB / 0.9264 GB, free: 14.27 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.5216/0.5226, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2198/0.7423, allocations: 143 MB / 1.212 GB, free: 40 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.537/1.279, allocations: 150.8 MB / 1.359 GB, free: 17.19 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002055/1.28, allocations: 77.55 kB / 1.359 GB, free: 17.19 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.01727/1.297, allocations: 5.714 MB / 1.365 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/1.297, allocations: 8.5 kB / 1.365 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000157/1.297, allocations: 39.39 kB / 1.365 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004722/1.298, allocations: 265 kB / 1.365 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.32e-05/1.298, allocations: 9.391 kB / 1.365 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001009/1.298, allocations: 36.61 kB / 1.365 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002578/1.298, allocations: 89.08 kB / 1.365 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003016/1.298, allocations: 159.4 kB / 1.365 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/1.298, allocations: 0 / 1.365 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.536e-05/1.298, allocations: 5.969 kB / 1.365 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.477e-06/1.298, allocations: 4.75 kB / 1.365 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009456/1.299, allocations: 0.5854 MB / 1.366 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002462/1.3, allocations: 170 kB / 1.366 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001063/1.3, allocations: 73.89 kB / 1.366 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.485e-05/1.3, allocations: 2.406 kB / 1.366 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002482/1.3, allocations: 189.3 kB / 1.366 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=37): time 2.295e-06/1.3, allocations: 0 / 1.366 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of matching and sorting (n=37): time 0.0004951/1.301, allocations: 242.4 kB / 1.366 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.614e-05/1.301, allocations: 61.89 kB / 1.366 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001788/1.301, allocations: 168.2 kB / 1.367 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 6.411e-05/1.301, allocations: 40.05 kB / 1.367 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001088/1.301, allocations: 124.2 kB / 1.367 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 8.81e-05/1.301, allocations: 86.58 kB / 1.367 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.756e-05/1.301, allocations: 8.375 kB / 1.367 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001385/1.301, allocations: 335.7 kB / 1.367 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003067/1.302, allocations: 132.3 kB / 1.367 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003847/1.302, allocations: 251.9 kB / 1.368 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006476/1.303, allocations: 180.5 kB / 1.368 GB, free: 30.9 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.972e-06/1.303, allocations: 1.031 kB / 1.368 GB, free: 30.9 MB / 0.8386 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001183/1.304, allocations: 488.3 kB / 1.368 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/1.304, allocations: 5.219 kB / 1.368 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.153e-05/1.304, allocations: 4.594 kB / 1.368 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.213e-05/1.304, allocations: 6.906 kB / 1.368 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001584/1.304, allocations: 47.8 kB / 1.368 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.384e-05/1.304, allocations: 10.8 kB / 1.368 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006268/1.305, allocations: 135.8 kB / 1.368 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.485e-05/1.305, allocations: 29.31 kB / 1.368 GB, free: 30.78 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 56 ($PRE.accuTimer3.yAcc,accuTimer3.yAcc,$PRE.accuTimer2.yAcc,accuTimer2.yAcc,$PRE.accuTimer1.yAcc,accuTimer1.yAcc,$PRE.accuTimer.yAcc,accuTimer.yAcc,$PRE.resetTimer.yAcc,resetTimer.yAcc,$whenCondition16,$whenCondition17,$whenCondition14,$whenCondition15,$whenCondition12,$whenCondition13,$whenCondition4,$PRE.booPul1.y,booPul1.y,$whenCondition1,$whenCondition10,accuTimer3.reset,$PRE.pre.u,$whenCondition9,$whenCondition8,$PRE.accuTimer2.entryTime,accuTimer2.entryTime,$PRE.booPul2.y,booPul2.y,$PRE.accuTimer2.reset_internal,accuTimer2.reset_internal,$whenCondition11,$whenCondition6,$whenCondition7,$whenCondition5,$whenCondition3,$whenCondition2,$PRE.resetTimer.entryTime,resetTimer.entryTime,$PRE.accuTimer.entryTime,accuTimer.entryTime,$PRE.accuTimer1.entryTime,accuTimer1.entryTime,$PRE.accuTimer3.entryTime,accuTimer3.entryTime,pre.u,$PRE.booPul.y,booPul.y,$PRE.resetTimer.reset_internal,resetTimer.reset_internal,$PRE.accuTimer.reset_internal,accuTimer.reset_internal,$PRE.accuTimer1.reset_internal,accuTimer1.reset_internal,$PRE.accuTimer3.reset_internal,accuTimer3.reset_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 3 * 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.000153/1.305, allocations: 141.2 kB / 1.369 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.508e-05/1.305, allocations: 26.31 kB / 1.369 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.766e-05/1.305, allocations: 27.22 kB / 1.369 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.501e-06/1.305, allocations: 8.812 kB / 1.369 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/1.305, allocations: 0 / 1.369 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.062e-06/1.305, allocations: 7.422 kB / 1.369 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008276/1.306, allocations: 0.5907 MB / 1.369 GB, free: 30.35 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/1.306, allocations: 0 / 1.369 GB, free: 30.35 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.556e-05/1.306, allocations: 12.17 kB / 1.369 GB, free: 30.35 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/1.306, allocations: 2.219 kB / 1.369 GB, free: 30.35 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.462e-05/1.306, allocations: 19.44 kB / 1.369 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.836e-06/1.306, allocations: 2.406 kB / 1.369 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/1.306, allocations: 0 / 1.369 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004253/1.306, allocations: 346.6 kB / 1.37 GB, free: 30.19 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005129/1.307, allocations: 0.7153 MB / 1.37 GB, free: 29.66 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.423e-05/1.307, allocations: 105.1 kB / 1.37 GB, free: 29.55 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.814e-05/1.307, allocations: 9.594 kB / 1.37 GB, free: 29.55 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001126/1.307, allocations: 9.266 kB / 1.37 GB, free: 29.55 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.932e-05/1.307, allocations: 33.11 kB / 1.37 GB, free: 29.55 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.254e-05/1.307, allocations: 17.72 kB / 1.37 GB, free: 29.55 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0001696/1.308, allocations: 112.7 kB / 1.371 GB, free: 29.48 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.001085/1.309, allocations: 88.81 kB / 1.371 GB, free: 29.47 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 32 (accuTimer3.reset,$whenCondition16,$whenCondition17,$whenCondition14,$whenCondition15,$whenCondition12,$whenCondition13,$whenCondition10,$whenCondition11,$whenCondition9,$whenCondition8,$whenCondition6,$whenCondition7,$whenCondition4,$whenCondition5,$whenCondition3,$whenCondition1,$whenCondition2,resetTimer.entryTime,resetTimer.yAcc,accuTimer.entryTime,accuTimer.yAcc,accuTimer1.entryTime,accuTimer1.yAcc,accuTimer2.entryTime,accuTimer2.yAcc,accuTimer3.entryTime,accuTimer3.yAcc,booPul1.y,pre.u,booPul.y,booPul2.y) * Number of discrete states: 6 (pre.u,accuTimer3.y,accuTimer2.y,accuTimer1.y,accuTimer.y,resetTimer.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * 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.0002175/1.309, allocations: 132.5 kB / 1.371 GB, free: 29.37 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0006798/1.31, allocations: 420.4 kB / 1.371 GB, free: 29.25 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/1.31, allocations: 0 / 1.371 GB, free: 29.25 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002378/1.31, allocations: 140.9 kB / 1.371 GB, free: 29.25 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000319/1.31, allocations: 40.42 kB / 1.371 GB, free: 29.23 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006925/1.311, allocations: 300.5 kB / 1.372 GB, free: 29.11 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003848/1.311, allocations: 0.7768 MB / 1.372 GB, free: 28.41 MB / 0.8386 GB Notification: Performance of SimCode: time 4.11e-07/1.311, allocations: 4 kB / 1.372 GB, free: 28.4 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Logical.Validation.Timer.pipe ; mkfifo Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Logical.Validation.Timer.pipe ; head -c 1048576 < Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Logical.Validation.Timer.pipe >> ../files/Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Logical.Validation.Timer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Logical.Validation.Timer_res.mat --tempDir=temp_Buildings_latest_Buildings_Obsolete_Controls_OBC_CDL_Logical_Validation_Timer_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Obsolete_Controls_OBC_CDL_Logical_Validation_Timer.fmu > Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Logical.Validation.Timer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Logical.Validation.Timer_res.mat does not exist to compare? outputFormat=mat