Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart.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.Predictors.BaseClasses.Examples.SampleStart,fileNamePrefix="Buildings_latest_Buildings_Controls_Predictors_BaseClasses_Examples_SampleStart",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart,fileNamePrefix="Buildings_latest_Buildings_Controls_Predictors_BaseClasses_Examples_SampleStart",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.759/1.759, allocations: 390.4 MB / 397.7 MB, free: 10.62 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.0009933/0.0009933, allocations: 189 kB / 490.8 MB, free: 11.18 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.119/1.119, allocations: 221.4 MB / 0.7863 GB, free: 13.53 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.0009037/0.0009037, allocations: 87.11 kB / 0.9263 GB, free: 4.5 MB / 0.6667 GB Notification: Performance of FrontEnd - loaded program: time 0.2404/0.2413, allocations: 149.2 MB / 1.072 GB, free: 15.45 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5368/0.7781, allocations: 143 MB / 1.212 GB, free: 155.8 MB / 0.8855 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1595/0.9377, allocations: 148.8 MB / 1.357 GB, free: 42.72 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002082/0.9379, allocations: 75.95 kB / 1.357 GB, free: 42.64 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0027/0.9406, allocations: 1.219 MB / 1.358 GB, free: 41.4 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.313e-05/0.9407, allocations: 8 kB / 1.358 GB, free: 41.39 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.943e-05/0.9407, allocations: 88.78 kB / 1.358 GB, free: 41.3 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001166/0.9409, allocations: 268.5 kB / 1.359 GB, free: 41.01 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.416e-05/0.9409, allocations: 155.4 kB / 1.359 GB, free: 40.86 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.305e-05/0.9409, allocations: 154.6 kB / 1.359 GB, free: 40.7 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.167e-05/0.941, allocations: 163.5 kB / 1.359 GB, free: 40.54 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 3.261e-05/0.941, allocations: 101.6 kB / 1.359 GB, free: 40.44 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.941, allocations: 79.22 kB / 1.359 GB, free: 40.36 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.136e-05/0.9411, allocations: 151.2 kB / 1.359 GB, free: 40.21 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.863e-05/0.9411, allocations: 151.3 kB / 1.36 GB, free: 40.07 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001997/0.9413, allocations: 483.7 kB / 1.36 GB, free: 39.56 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 3.807e-05/0.9413, allocations: 166.6 kB / 1.36 GB, free: 39.39 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.006e-05/0.9414, allocations: 88.58 kB / 1.36 GB, free: 39.3 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.085e-05/0.9414, allocations: 80.25 kB / 1.36 GB, free: 39.22 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.01e-05/0.9414, allocations: 110.4 kB / 1.36 GB, free: 39.1 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=0): time 1.072e-06/0.9414, allocations: 1.125 kB / 1.36 GB, free: 39.1 MB / 0.8855 GB Notification: Performance of matching and sorting (n=0): time 7.002e-05/0.9415, allocations: 41.52 kB / 1.36 GB, free: 39.05 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.38e-05/0.9415, allocations: 51.41 kB / 1.361 GB, free: 38.99 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001553/0.9417, allocations: 203 kB / 1.361 GB, free: 38.79 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 9.688e-06/0.9417, allocations: 25.7 kB / 1.361 GB, free: 38.76 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 2.647e-05/0.9417, allocations: 104.4 kB / 1.361 GB, free: 38.65 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 1.383e-06/0.9417, allocations: 4.719 kB / 1.361 GB, free: 38.65 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.602e-06/0.9417, allocations: 0 / 1.361 GB, free: 38.65 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 4.862e-05/0.9418, allocations: 323.6 kB / 1.361 GB, free: 38.32 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.43e-05/0.9419, allocations: 45.34 kB / 1.361 GB, free: 38.28 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001077/0.942, allocations: 177.5 kB / 1.361 GB, free: 38.05 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004863/0.9425, allocations: 121.5 kB / 1.361 GB, free: 37.94 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.9425, allocations: 0 / 1.361 GB, free: 37.94 MB / 0.8855 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006961/0.9432, allocations: 269.2 kB / 1.362 GB, free: 37.67 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.121e-05/0.9432, allocations: 4.969 kB / 1.362 GB, free: 37.67 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.9432, allocations: 11.98 kB / 1.362 GB, free: 37.66 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.698e-05/0.9432, allocations: 4.719 kB / 1.362 GB, free: 37.65 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001422/0.9434, allocations: 46.11 kB / 1.362 GB, free: 37.61 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.438e-06/0.9434, allocations: 12.73 kB / 1.362 GB, free: 37.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.356e-05/0.9435, allocations: 23.69 kB / 1.362 GB, free: 37.57 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.958e-05/0.9435, allocations: 12.75 kB / 1.362 GB, free: 37.56 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.869e-05/0.9436, allocations: 187.8 kB / 1.362 GB, free: 37.38 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.788e-05/0.9437, allocations: 118 kB / 1.362 GB, free: 37.25 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.428e-05/0.9437, allocations: 118.2 kB / 1.362 GB, free: 37.14 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.05e-05/0.9437, allocations: 180.3 kB / 1.362 GB, free: 36.95 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.646e-05/0.9438, allocations: 181.3 kB / 1.363 GB, free: 36.77 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-05/0.9438, allocations: 176.9 kB / 1.363 GB, free: 36.59 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001539/0.9439, allocations: 419.6 kB / 1.363 GB, free: 36.14 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.546e-05/0.944, allocations: 111.9 kB / 1.363 GB, free: 36.02 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.516e-05/0.944, allocations: 102 kB / 1.363 GB, free: 35.92 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.963e-05/0.944, allocations: 177 kB / 1.364 GB, free: 35.74 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.003e-05/0.9441, allocations: 192.7 kB / 1.364 GB, free: 35.54 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-05/0.9441, allocations: 177.3 kB / 1.364 GB, free: 35.36 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.408e-05/0.9441, allocations: 179.4 kB / 1.364 GB, free: 35.18 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 6.328e-05/0.9442, allocations: 320.4 kB / 1.364 GB, free: 34.85 MB / 0.8855 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 9.969e-05/0.9443, allocations: 0.6829 MB / 1.365 GB, free: 34.14 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 3.857e-05/0.9443, allocations: 190.5 kB / 1.365 GB, free: 33.93 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.307e-05/0.9444, allocations: 184.8 kB / 1.365 GB, free: 33.74 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.605e-05/0.9445, allocations: 109.6 kB / 1.365 GB, free: 33.62 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.728e-05/0.9445, allocations: 179.9 kB / 1.366 GB, free: 33.45 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.252e-05/0.9445, allocations: 101 kB / 1.366 GB, free: 33.34 MB / 0.8855 GB Notification: Performance of sort global known variables: time 7.741e-05/0.9446, allocations: 152.6 kB / 1.366 GB, free: 33.19 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0009294/0.9455, allocations: 27.94 kB / 1.366 GB, free: 33.16 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * 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 Backend phase and start with SimCode phase: time 0.0001245/0.9457, allocations: 174.5 kB / 1.366 GB, free: 32.98 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0001407/0.9458, allocations: 91.34 kB / 1.366 GB, free: 32.9 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.9458, allocations: 0 / 1.366 GB, free: 32.9 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 1.012e-06/0.9458, allocations: 0 / 1.366 GB, free: 32.9 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001934/0.946, allocations: 0.5299 MB / 1.367 GB, free: 32.37 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002625/0.9463, allocations: 227.2 kB / 1.367 GB, free: 32.12 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001551/0.9464, allocations: 0.7238 MB / 1.368 GB, free: 31.37 MB / 0.8855 GB Notification: Performance of SimCode: time 2.6e-07/0.9465, allocations: 4 kB / 1.368 GB, free: 31.37 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart.pipe ; mkfifo Buildings_latest_Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart.pipe >> ../files/Buildings_latest_Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_Predictors_BaseClasses_Examples_SampleStart_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_Predictors_BaseClasses_Examples_SampleStart.fmu > Buildings_latest_Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.Predictors.BaseClasses.Examples.SampleStart_res.mat does not exist to compare? outputFormat=mat