Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.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.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow,fileNamePrefix="Buildings_latest_Buildings_ThermalZones_Detailed_Examples_Controls_Validation_ElectrochromicWindow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 1.995/1.995, allocations: 390.4 MB / 397.7 MB, free: 11.25 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.001007/0.001007, allocations: 165.4 kB / 490.8 MB, free: 1.957 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.442/1.442, allocations: 221.3 MB / 0.7863 GB, free: 13.69 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.0009917/0.0009917, allocations: 96.67 kB / 0.9264 GB, free: 14.21 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.5629/0.5639, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2113/0.7752, allocations: 143 MB / 1.212 GB, free: 40.03 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6135/1.389, allocations: 151.9 MB / 1.36 GB, free: 16.93 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002344/1.389, allocations: 83.2 kB / 1.36 GB, free: 16.93 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.01168/1.401, allocations: 4.086 MB / 1.364 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.508e-05/1.401, allocations: 12.53 kB / 1.364 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.967e-05/1.401, allocations: 26.62 kB / 1.364 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002771/1.401, allocations: 257.2 kB / 1.364 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.44e-05/1.401, allocations: 3.938 kB / 1.364 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.411e-05/1.401, allocations: 16.34 kB / 1.364 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002263/1.401, allocations: 103.1 kB / 1.364 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002624/1.402, allocations: 165.6 kB / 1.365 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.936e-06/1.402, allocations: 0 / 1.365 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.358e-05/1.402, allocations: 6.484 kB / 1.365 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.287e-06/1.402, allocations: 2.625 kB / 1.365 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007174/1.402, allocations: 0.5272 MB / 1.365 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002989/1.403, allocations: 138.3 kB / 1.365 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001075/1.403, allocations: 61.77 kB / 1.365 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.04e-05/1.403, allocations: 1.344 kB / 1.365 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001574/1.403, allocations: 113.8 kB / 1.365 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=15): time 1.323e-06/1.403, allocations: 0 / 1.365 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of matching and sorting (n=15): time 0.0002995/1.403, allocations: 146.4 kB / 1.366 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.877e-05/1.403, allocations: 106.5 kB / 1.366 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001518/1.404, allocations: 166.9 kB / 1.366 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.561e-05/1.404, allocations: 32.39 kB / 1.366 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.294e-05/1.404, allocations: 116.7 kB / 1.366 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.832e-05/1.404, allocations: 36.55 kB / 1.366 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.323e-05/1.404, allocations: 0 / 1.366 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001223/1.404, allocations: 333.2 kB / 1.366 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.845e-05/1.404, allocations: 50.52 kB / 1.366 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001161/1.404, allocations: 81.62 kB / 1.366 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.08e-05/1.404, allocations: 54.72 kB / 1.367 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/1.404, allocations: 0 / 1.367 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002768/1.404, allocations: 164.2 kB / 1.367 GB, free: 30.72 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.6e-05/1.405, allocations: 97.06 kB / 1.367 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/1.405, allocations: 0 / 1.367 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.051e-05/1.405, allocations: 2.062 kB / 1.367 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003369/1.405, allocations: 77.83 kB / 1.367 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.519e-06/1.405, allocations: 1 kB / 1.367 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003563/1.405, allocations: 85.33 kB / 1.367 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.262e-05/1.405, allocations: 4 kB / 1.367 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 5.781e-06/1.405, allocations: 4.828 kB / 1.367 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002006/1.406, allocations: 107.1 kB / 1.367 GB, free: 30.6 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.252e-06/1.406, allocations: 0 / 1.367 GB, free: 30.6 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.415e-06/1.406, allocations: 1.125 kB / 1.367 GB, free: 30.6 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002599/1.406, allocations: 68.03 kB / 1.367 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.243e-06/1.406, allocations: 0 / 1.367 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000301/1.406, allocations: 62.89 kB / 1.367 GB, free: 30.58 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.729e-05/1.406, allocations: 6.328 kB / 1.367 GB, free: 30.58 MB / 0.8386 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.968e-05/1.406, allocations: 115.3 kB / 1.367 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.379e-05/1.406, allocations: 21.03 kB / 1.367 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.544e-05/1.406, allocations: 20.41 kB / 1.367 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/1.406, allocations: 1.594 kB / 1.367 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/1.406, allocations: 0 / 1.367 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/1.406, allocations: 3.078 kB / 1.367 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001748/1.407, allocations: 250 kB / 1.368 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/1.407, allocations: 0.9375 kB / 1.368 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003129/1.407, allocations: 80.38 kB / 1.368 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/1.407, allocations: 0.9062 kB / 1.368 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.981e-05/1.407, allocations: 2.938 kB / 1.368 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/1.407, allocations: 1.656 kB / 1.368 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/1.407, allocations: 0.6562 kB / 1.368 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002461/1.407, allocations: 188 kB / 1.368 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003566/1.408, allocations: 0.5297 MB / 1.368 GB, free: 29.74 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.082e-05/1.408, allocations: 98.86 kB / 1.368 GB, free: 29.63 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.82e-05/1.408, allocations: 6.422 kB / 1.368 GB, free: 29.63 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003447/1.408, allocations: 70.5 kB / 1.368 GB, free: 29.62 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.966e-05/1.408, allocations: 29.06 kB / 1.369 GB, free: 29.62 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.837e-05/1.408, allocations: 6.188 kB / 1.369 GB, free: 29.62 MB / 0.8386 GB Notification: Performance of sort global known variables: time 9.679e-05/1.408, allocations: 144 kB / 1.369 GB, free: 29.54 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.001463/1.41, allocations: 74 kB / 1.369 GB, free: 29.53 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: 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.0001319/1.41, allocations: 108.6 kB / 1.369 GB, free: 29.44 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000401/1.41, allocations: 302.7 kB / 1.369 GB, free: 29.3 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/1.41, allocations: 0 / 1.369 GB, free: 29.3 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001293/1.41, allocations: 71.69 kB / 1.369 GB, free: 29.3 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002721/1.411, allocations: 36.88 kB / 1.369 GB, free: 29.29 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005571/1.411, allocations: 231.8 kB / 1.369 GB, free: 29.19 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004089/1.412, allocations: 0.7572 MB / 1.37 GB, free: 28.48 MB / 0.8386 GB Notification: Performance of SimCode: time 2.51e-07/1.412, allocations: 0.9688 kB / 1.37 GB, free: 28.48 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.pipe ; mkfifo Buildings_latest_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.pipe ; head -c 1048576 < Buildings_latest_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.pipe >> ../files/Buildings_latest_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow_res.mat --tempDir=temp_Buildings_latest_Buildings_ThermalZones_Detailed_Examples_Controls_Validation_ElectrochromicWindow_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_ThermalZones_Detailed_Examples_Controls_Validation_ElectrochromicWindow.fmu > Buildings_latest_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow_res.mat does not exist to compare? outputFormat=mat