Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.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.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow,fileNamePrefix="Buildings_9_Buildings_ThermalZones_Detailed_Examples_Controls_Validation_ElectrochromicWindow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow,fileNamePrefix="Buildings_9_Buildings_ThermalZones_Detailed_Examples_Controls_Validation_ElectrochromicWindow",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 2.011/2.011, allocations: 387.2 MB / 394.5 MB, free: 13.62 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.001186/0.001186, allocations: 181.3 kB / 487 MB, free: 5.359 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.473/1.473, allocations: 221.3 MB / 0.7819 GB, free: 1.41 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001057/0.001057, allocations: 99.12 kB / 0.9213 GB, free: 2.648 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.6148/0.6159, allocations: 148.5 MB / 1.066 GB, free: 168.1 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2568/0.8728, allocations: 142.3 MB / 1.205 GB, free: 26.09 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6902/1.563, allocations: 151.1 MB / 1.353 GB, free: 15.79 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002444/1.563, allocations: 86.17 kB / 1.353 GB, free: 15.79 MB / 0.8073 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0129/1.576, allocations: 4.089 MB / 1.357 GB, free: 15.06 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/1.576, allocations: 9.688 kB / 1.357 GB, free: 15.06 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.539e-05/1.576, allocations: 24.11 kB / 1.357 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003211/1.577, allocations: 254.8 kB / 1.357 GB, free: 14.83 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.948e-05/1.577, allocations: 12 kB / 1.357 GB, free: 14.83 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.596e-05/1.577, allocations: 8.438 kB / 1.357 GB, free: 14.83 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002646/1.577, allocations: 103.4 kB / 1.357 GB, free: 14.82 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003014/1.577, allocations: 159.1 kB / 1.357 GB, free: 14.77 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/1.577, allocations: 0.5938 kB / 1.357 GB, free: 14.77 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.436e-05/1.577, allocations: 2.469 kB / 1.357 GB, free: 14.77 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/1.577, allocations: 2.875 kB / 1.357 GB, free: 14.77 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009227/1.578, allocations: 0.5256 MB / 1.358 GB, free: 14.5 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003575/1.579, allocations: 147.8 kB / 1.358 GB, free: 14.47 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001255/1.579, allocations: 58.48 kB / 1.358 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 3.409e-05/1.579, allocations: 2.641 kB / 1.358 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001903/1.579, allocations: 116.2 kB / 1.358 GB, free: 14.41 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=15): time 2.785e-06/1.579, allocations: 0 / 1.358 GB, free: 14.41 MB / 0.8073 GB Notification: Performance of matching and sorting (n=15): time 0.0003565/1.579, allocations: 144.8 kB / 1.358 GB, free: 14.37 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.369e-05/1.58, allocations: 111.8 kB / 1.359 GB, free: 14.24 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001754/1.58, allocations: 166.6 kB / 1.359 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.957e-05/1.58, allocations: 31.5 kB / 1.359 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 5.18e-05/1.58, allocations: 113.4 kB / 1.359 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 4.63e-05/1.58, allocations: 38.03 kB / 1.359 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.278e-05/1.58, allocations: 0.75 kB / 1.359 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 7.267e-05/1.58, allocations: 335.2 kB / 1.359 GB, free: 13.68 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001089/1.58, allocations: 51.83 kB / 1.359 GB, free: 13.68 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001382/1.58, allocations: 81.94 kB / 1.359 GB, free: 13.65 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.605e-05/1.58, allocations: 42.64 kB / 1.359 GB, free: 13.65 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/1.58, allocations: 0 / 1.359 GB, free: 13.65 MB / 0.8073 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003267/1.581, allocations: 167.2 kB / 1.36 GB, free: 13.6 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 4.848e-05/1.581, allocations: 95.03 kB / 1.36 GB, free: 13.51 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/1.581, allocations: 5.031 kB / 1.36 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.657e-05/1.581, allocations: 4.953 kB / 1.36 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003906/1.581, allocations: 77.11 kB / 1.36 GB, free: 13.49 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.052e-06/1.581, allocations: 1.453 kB / 1.36 GB, free: 13.49 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004152/1.582, allocations: 87.19 kB / 1.36 GB, free: 13.47 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.504e-05/1.582, allocations: 4.844 kB / 1.36 GB, free: 13.47 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 7.815e-06/1.582, allocations: 4.25 kB / 1.36 GB, free: 13.47 MB / 0.8073 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002314/1.582, allocations: 113.1 kB / 1.36 GB, free: 13.46 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-06/1.582, allocations: 4 kB / 1.36 GB, free: 13.46 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.785e-06/1.582, allocations: 1.094 kB / 1.36 GB, free: 13.46 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003251/1.582, allocations: 58.66 kB / 1.36 GB, free: 13.46 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.625e-06/1.582, allocations: 1.375 kB / 1.36 GB, free: 13.46 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003302/1.583, allocations: 63.2 kB / 1.36 GB, free: 13.45 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.919e-05/1.583, allocations: 7.719 kB / 1.36 GB, free: 13.45 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.TMea.T_start,TMea.T_start,$PRE.TMea.count,TMea.count,$PRE.HMea.T_start,HMea.T_start,$PRE.HMea.count,HMea.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 15 * 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 8.61e-05/1.583, allocations: 109.5 kB / 1.36 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.401e-05/1.583, allocations: 21.34 kB / 1.36 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.292e-05/1.583, allocations: 18.83 kB / 1.36 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.389e-06/1.583, allocations: 1.188 kB / 1.36 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.712e-06/1.583, allocations: 0.8125 kB / 1.36 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/1.583, allocations: 1.547 kB / 1.36 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002676/1.583, allocations: 259.4 kB / 1.36 GB, free: 13.15 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/1.583, allocations: 1.5 kB / 1.36 GB, free: 13.15 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003849/1.584, allocations: 72.03 kB / 1.36 GB, free: 13.14 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.496e-06/1.584, allocations: 1.062 kB / 1.36 GB, free: 13.14 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.439e-05/1.584, allocations: 5.609 kB / 1.36 GB, free: 13.14 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/1.584, allocations: 8.953 kB / 1.36 GB, free: 13.14 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/1.584, allocations: 1 kB / 1.36 GB, free: 13.14 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003489/1.584, allocations: 172.8 kB / 1.361 GB, free: 13.05 MB / 0.8073 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004461/1.584, allocations: 0.5329 MB / 1.361 GB, free: 12.61 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 5.261e-05/1.584, allocations: 106.9 kB / 1.361 GB, free: 12.5 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.135e-05/1.585, allocations: 7.031 kB / 1.361 GB, free: 12.5 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003881/1.585, allocations: 70.88 kB / 1.361 GB, free: 12.47 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001053/1.585, allocations: 30.48 kB / 1.361 GB, free: 12.46 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.692e-05/1.585, allocations: 5.219 kB / 1.361 GB, free: 12.45 MB / 0.8073 GB Notification: Performance of sort global known variables: time 0.0001001/1.585, allocations: 141.8 kB / 1.362 GB, free: 12.34 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.00156/1.587, allocations: 72.92 kB / 1.362 GB, free: 12.27 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,TMea.T_start,TMea.count,HMea.T_start,HMea.count) * Number of discrete states: 2 (TMea.count,HMea.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001391/1.587, allocations: 108.6 kB / 1.362 GB, free: 12.16 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0004069/1.587, allocations: 303.1 kB / 1.362 GB, free: 11.91 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/1.587, allocations: 0 / 1.362 GB, free: 11.91 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0001251/1.587, allocations: 76.02 kB / 1.362 GB, free: 11.86 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002964/1.588, allocations: 31.25 kB / 1.362 GB, free: 11.84 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006235/1.588, allocations: 238 kB / 1.362 GB, free: 11.64 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005143/1.589, allocations: 0.7588 MB / 1.363 GB, free: 26.89 MB / 0.823 GB Notification: Performance of SimCode: time 2.41e-07/1.589, allocations: 4 kB / 1.363 GB, free: 26.89 MB / 0.823 GB (rm -f Buildings_9_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.pipe ; mkfifo Buildings_9_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.pipe ; head -c 1048576 < Buildings_9_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.pipe >> ../files/Buildings_9_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow_res.mat --tempDir=temp_Buildings_9_Buildings_ThermalZones_Detailed_Examples_Controls_Validation_ElectrochromicWindow_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_ThermalZones_Detailed_Examples_Controls_Validation_ElectrochromicWindow.fmu > Buildings_9_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow_res.mat does not exist to compare? outputFormat=mat