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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.246/2.246, allocations: 390.3 MB / 405.3 MB, free: 13.47 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.00137/0.001369, allocations: 177.2 kB / 498.1 MB, free: 5.746 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.633/1.633, allocations: 223.1 MB / 0.7948 GB, free: 17.96 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.001146/0.001146, allocations: 92.27 kB / 0.9346 GB, free: 6.293 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004174/0.0004175, allocations: 19.84 kB / 1.084 GB, free: 221.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3399/0.3404, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2117/0.5522, allocations: 151.9 MB / 1.371 GB, free: 10.18 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002897/0.5525, allocations: 87.94 kB / 1.371 GB, free: 10.1 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01115/0.5637, allocations: 3.744 MB / 1.375 GB, free: 6.344 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.555e-06/0.5637, allocations: 0 / 1.375 GB, free: 6.344 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.598e-05/0.5638, allocations: 4 kB / 1.375 GB, free: 6.34 MB / 0.8698 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.00119/0.565, allocations: 0.6282 MB / 1.376 GB, free: 5.648 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 6.525e-05/0.565, allocations: 16.02 kB / 1.376 GB, free: 5.633 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.858e-05/0.5651, allocations: 42.56 kB / 1.376 GB, free: 5.582 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.424e-05/0.5652, allocations: 27.67 kB / 1.376 GB, free: 5.555 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004123/0.5656, allocations: 254.7 kB / 1.376 GB, free: 5.266 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.874e-05/0.5657, allocations: 12 kB / 1.376 GB, free: 5.254 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.584e-05/0.5657, allocations: 11.94 kB / 1.376 GB, free: 5.242 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008098/0.5665, allocations: 297 kB / 1.376 GB, free: 4.938 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.5665, allocations: 0 / 1.376 GB, free: 4.938 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.407e-05/0.5666, allocations: 0 / 1.376 GB, free: 4.938 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.647e-06/0.5666, allocations: 4 kB / 1.376 GB, free: 4.934 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001011/0.5676, allocations: 323.7 kB / 1.377 GB, free: 4.617 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001004/0.5686, allocations: 0.5703 MB / 1.377 GB, free: 3.996 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001244/0.5699, allocations: 378.5 kB / 1.377 GB, free: 3.617 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.998e-05/0.5699, allocations: 7.984 kB / 1.377 GB, free: 3.609 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007343/0.5707, allocations: 243 kB / 1.378 GB, free: 3.359 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=15): time 1.683e-06/0.5707, allocations: 0 / 1.378 GB, free: 3.359 MB / 0.8698 GB Notification: Performance of matching and sorting (n=15): time 0.001611/0.5723, allocations: 0.5115 MB / 1.378 GB, free: 2.844 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.784e-05/0.5724, allocations: 114.8 kB / 1.378 GB, free: 2.707 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002223/0.5726, allocations: 186.2 kB / 1.379 GB, free: 2.516 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 3.382e-05/0.5727, allocations: 33.64 kB / 1.379 GB, free: 2.477 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001012/0.5728, allocations: 132.2 kB / 1.379 GB, free: 2.34 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 5.749e-05/0.5729, allocations: 43.45 kB / 1.379 GB, free: 2.297 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.631e-05/0.5729, allocations: 4 kB / 1.379 GB, free: 2.293 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001579/0.573, allocations: 330.8 kB / 1.379 GB, free: 1.961 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000503/0.5736, allocations: 159.9 kB / 1.379 GB, free: 1.805 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005557/0.5741, allocations: 193.4 kB / 1.379 GB, free: 1.609 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005258/0.5747, allocations: 207.3 kB / 1.38 GB, free: 1.395 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.5747, allocations: 0 / 1.38 GB, free: 1.395 MB / 0.8698 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001148/0.5758, allocations: 457.9 kB / 1.38 GB, free: 0.9297 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001273/0.576, allocations: 148.4 kB / 1.38 GB, free: 0.7656 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.576, allocations: 0 / 1.38 GB, free: 0.7656 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.907e-05/0.576, allocations: 7.938 kB / 1.38 GB, free: 0.7578 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003317/0.5763, allocations: 71.88 kB / 1.38 GB, free: 0.6875 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.729e-06/0.5764, allocations: 0 / 1.38 GB, free: 0.6875 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003613/0.5767, allocations: 75.78 kB / 1.38 GB, free: 0.6133 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.161e-05/0.5768, allocations: 11.98 kB / 1.38 GB, free: 0.6016 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 7.985e-06/0.5768, allocations: 4 kB / 1.38 GB, free: 0.5977 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009291/0.5777, allocations: 364 kB / 1.381 GB, free: 236 kB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.633e-06/0.5777, allocations: 3.938 kB / 1.381 GB, free: 232 kB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.973e-06/0.5777, allocations: 0 / 1.381 GB, free: 232 kB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002602/0.578, allocations: 59.89 kB / 1.381 GB, free: 172 kB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.703e-06/0.578, allocations: 0 / 1.381 GB, free: 172 kB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002908/0.5783, allocations: 63.84 kB / 1.381 GB, free: 108 kB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.419e-05/0.5783, allocations: 4 kB / 1.381 GB, free: 104 kB / 0.8698 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 () * Number of clocked 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 0.0001928/0.5785, allocations: 214.1 kB / 1.381 GB, free: 15.88 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.148e-05/0.5786, allocations: 15.81 kB / 1.381 GB, free: 15.87 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.708e-05/0.5786, allocations: 21.52 kB / 1.381 GB, free: 15.84 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.552e-06/0.5787, allocations: 4 kB / 1.381 GB, free: 15.84 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.836e-06/0.5787, allocations: 0 / 1.381 GB, free: 15.84 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.5787, allocations: 3.938 kB / 1.381 GB, free: 15.84 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002796/0.579, allocations: 289.3 kB / 1.381 GB, free: 15.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-06/0.579, allocations: 4 kB / 1.381 GB, free: 15.5 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002852/0.5793, allocations: 67.92 kB / 1.381 GB, free: 15.43 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.5793, allocations: 4 kB / 1.381 GB, free: 15.43 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.977e-05/0.5793, allocations: 4 kB / 1.381 GB, free: 15.43 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.5793, allocations: 0 / 1.381 GB, free: 15.43 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.5793, allocations: 0 / 1.381 GB, free: 15.43 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009991/0.5803, allocations: 412.5 kB / 1.382 GB, free: 15 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 5.833e-05/0.5804, allocations: 88.92 kB / 1.382 GB, free: 14.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.297e-05/0.5804, allocations: 12 kB / 1.382 GB, free: 14.89 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003162/0.5808, allocations: 67.86 kB / 1.382 GB, free: 14.82 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000101/0.5809, allocations: 31.95 kB / 1.382 GB, free: 14.79 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.578e-05/0.5809, allocations: 4 kB / 1.382 GB, free: 14.79 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001269/0.581, allocations: 156.4 kB / 1.382 GB, free: 14.63 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.9e-07/0.581, allocations: 0 / 1.382 GB, free: 14.63 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003524/0.5814, allocations: 83.83 kB / 1.382 GB, free: 14.55 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: 6 ($whenCondition2,$whenCondition1,TMea.T_start,TMea.count,HMea.T_start,HMea.count) * Number of discrete states: 2 (TMea.count,HMea.count) * Number of clocked states: 0 () * 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.001329/0.5827, allocations: 0.9475 MB / 1.383 GB, free: 13.57 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001529/0.5843, allocations: 0.7054 MB / 1.384 GB, free: 12.82 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.5843, allocations: 4 kB / 1.384 GB, free: 12.82 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0004975/0.5848, allocations: 175.8 kB / 1.384 GB, free: 12.64 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002803/0.5851, allocations: 40.47 kB / 1.384 GB, free: 12.61 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003143/0.5882, allocations: 1.513 MB / 1.385 GB, free: 11.04 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002817/0.5885, allocations: 0.7328 MB / 1.386 GB, free: 10.28 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0001379/0.5887, allocations: 33.52 kB / 1.386 GB, free: 10.25 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001188/0.5888, allocations: 55.36 kB / 1.386 GB, free: 10.2 MB / 0.8855 GB Notification: Performance of SimCode: time 4.41e-07/0.5888, allocations: 0 / 1.386 GB, free: 10.2 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01686/0.6057, allocations: 4.943 MB / 1.391 GB, free: 5.465 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001905/0.6059, allocations: 218.8 kB / 1.391 GB, free: 5.215 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.085/2.691, allocations: 0 / 1.391 GB, free: 5.215 MB / 0.8855 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