Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.OffTimer,fileNamePrefix="Buildings_9_Buildings_Controls_Continuous_Examples_OffTimer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.OffTimer,fileNamePrefix="Buildings_9_Buildings_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/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.767/1.767, allocations: 387.2 MB / 394.5 MB, free: 13.32 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.001006/0.001006, allocations: 177.5 kB / 487 MB, free: 0.75 MB / 378.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.121/1.121, allocations: 221.3 MB / 0.7819 GB, free: 6.82 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.0008321/0.0008321, allocations: 101.3 kB / 0.9213 GB, free: 43.76 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 0.2254/0.2262, allocations: 148.5 MB / 1.066 GB, free: 7.562 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5502/0.7765, allocations: 142.3 MB / 1.205 GB, free: 72.92 MB / 0.7917 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1477/0.9242, allocations: 149.1 MB / 1.351 GB, free: 14.31 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001802/0.9244, allocations: 71.97 kB / 1.351 GB, free: 14.24 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.003051/0.9275, allocations: 1.172 MB / 1.352 GB, free: 13.05 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.419e-05/0.9276, allocations: 8 kB / 1.352 GB, free: 13.04 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.28e-05/0.9276, allocations: 13.11 kB / 1.352 GB, free: 13.03 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001161/0.9277, allocations: 166.9 kB / 1.352 GB, free: 12.83 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.334e-05/0.9277, allocations: 4.875 kB / 1.352 GB, free: 12.82 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.281e-05/0.9278, allocations: 4 kB / 1.352 GB, free: 12.82 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.528e-05/0.9278, allocations: 24.89 kB / 1.352 GB, free: 12.8 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.22e-05/0.9279, allocations: 49.62 kB / 1.352 GB, free: 12.74 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.112e-06/0.9279, allocations: 1 kB / 1.352 GB, free: 12.74 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.816e-06/0.9279, allocations: 0 / 1.352 GB, free: 12.74 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.571e-06/0.9279, allocations: 0.5 kB / 1.352 GB, free: 12.74 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003368/0.9283, allocations: 273.8 kB / 1.353 GB, free: 12.44 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 8.03e-05/0.9284, allocations: 47.25 kB / 1.353 GB, free: 12.39 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.934e-05/0.9284, allocations: 37.03 kB / 1.353 GB, free: 12.35 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 8.526e-06/0.9284, allocations: 1.125 kB / 1.353 GB, free: 12.35 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.982e-05/0.9285, allocations: 67.39 kB / 1.353 GB, free: 12.27 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=9): time 1.232e-06/0.9285, allocations: 0 / 1.353 GB, free: 12.27 MB / 0.8542 GB Notification: Performance of matching and sorting (n=9): time 0.0001356/0.9287, allocations: 69.53 kB / 1.353 GB, free: 12.2 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.613e-05/0.9287, allocations: 55.41 kB / 1.353 GB, free: 12.13 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.247e-05/0.9288, allocations: 97 kB / 1.353 GB, free: 12.03 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.429e-05/0.9288, allocations: 25.7 kB / 1.353 GB, free: 12 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 2.769e-05/0.9288, allocations: 88.03 kB / 1.353 GB, free: 11.91 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 2.046e-05/0.9288, allocations: 19.8 kB / 1.353 GB, free: 11.89 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.258e-06/0.9288, allocations: 6.812 kB / 1.353 GB, free: 11.88 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 7.683e-05/0.9289, allocations: 318.8 kB / 1.353 GB, free: 11.56 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.663e-05/0.929, allocations: 12 kB / 1.353 GB, free: 11.55 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.304e-05/0.929, allocations: 44.41 kB / 1.353 GB, free: 11.5 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.491e-05/0.929, allocations: 17.05 kB / 1.353 GB, free: 11.48 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.9291, allocations: 3.906 kB / 1.353 GB, free: 11.48 MB / 0.8542 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001159/0.9292, allocations: 89.56 kB / 1.354 GB, free: 11.38 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.009e-05/0.9292, allocations: 4 kB / 1.354 GB, free: 11.38 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/0.9292, allocations: 0 / 1.354 GB, free: 11.38 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.918e-06/0.9292, allocations: 4 kB / 1.354 GB, free: 11.38 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.78e-05/0.9293, allocations: 15.89 kB / 1.354 GB, free: 11.36 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.9293, allocations: 2.344 kB / 1.354 GB, free: 11.36 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.801e-05/0.9294, allocations: 12.69 kB / 1.354 GB, free: 11.35 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.021e-06/0.9294, allocations: 0 / 1.354 GB, free: 11.35 MB / 0.8542 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 6.22e-05/0.9295, allocations: 120.9 kB / 1.354 GB, free: 11.22 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.215e-05/0.9295, allocations: 7.906 kB / 1.354 GB, free: 11.21 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.219e-05/0.9295, allocations: 4.062 kB / 1.354 GB, free: 11.21 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.9295, allocations: 0 / 1.354 GB, free: 11.21 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.9295, allocations: 0 / 1.354 GB, free: 11.21 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.9296, allocations: 4 kB / 1.354 GB, free: 11.21 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003066/0.9299, allocations: 323.8 kB / 1.354 GB, free: 10.85 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.9299, allocations: 3.938 kB / 1.354 GB, free: 10.84 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.379e-05/0.9299, allocations: 4 kB / 1.354 GB, free: 10.84 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.107e-06/0.9299, allocations: 7.906 kB / 1.354 GB, free: 10.83 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.201e-06/0.9299, allocations: 2.344 kB / 1.354 GB, free: 10.83 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.9299, allocations: 0.6875 kB / 1.354 GB, free: 10.83 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.9299, allocations: 0 / 1.354 GB, free: 10.83 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001144/0.9301, allocations: 175.4 kB / 1.354 GB, free: 10.64 MB / 0.8542 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000181/0.9302, allocations: 0.5313 MB / 1.355 GB, free: 10.09 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.982e-05/0.9303, allocations: 81.11 kB / 1.355 GB, free: 9.996 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.719e-05/0.9303, allocations: 8.516 kB / 1.355 GB, free: 9.988 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.82e-05/0.9304, allocations: 8 kB / 1.355 GB, free: 9.98 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.647e-05/0.9304, allocations: 11.97 kB / 1.355 GB, free: 9.969 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.601e-06/0.9305, allocations: 5.031 kB / 1.355 GB, free: 9.965 MB / 0.8542 GB Notification: Performance of sort global known variables: time 2.741e-05/0.9305, allocations: 83.28 kB / 1.355 GB, free: 9.883 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.000753/0.9312, allocations: 11.98 kB / 1.355 GB, free: 9.871 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: 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 8.222e-05/0.9313, allocations: 98.91 kB / 1.355 GB, free: 9.77 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 9.374e-05/0.9314, allocations: 48.44 kB / 1.355 GB, free: 9.723 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.212e-06/0.9314, allocations: 4.062 kB / 1.355 GB, free: 9.719 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 4.174e-05/0.9315, allocations: 23.94 kB / 1.355 GB, free: 9.695 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001726/0.9317, allocations: 8.641 kB / 1.355 GB, free: 9.688 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002976/0.932, allocations: 119.4 kB / 1.355 GB, free: 9.551 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002164/0.9322, allocations: 0.6997 MB / 1.356 GB, free: 8.824 MB / 0.8542 GB Notification: Performance of SimCode: time 2.51e-07/0.9322, allocations: 4 kB / 1.356 GB, free: 8.82 MB / 0.8542 GB (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_Continuous_Examples_OffTimer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_Continuous_Examples_OffTimer.fmu > Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer_res.mat does not exist to compare? outputFormat=mat