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/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008544/0.0008541, allocations: 91.38 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000897/0.0008971, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.512/1.512, allocations: 223.2 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.634/2.634, allocations: 390.4 MB / 0.6655 GB, free: 2.902 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005527/0.0005529, allocations: 12 kB / 0.8149 GB, free: 14.12 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8745/0.8751, allocations: 142.3 MB / 0.9539 GB, free: 8.152 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow): time 0.001987/0.8771, allocations: 1.649 MB / 0.9555 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008932/0.8781, allocations: 0.6145 MB / 0.9561 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001054/0.8782, allocations: 2.344 kB / 0.9561 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.022e-05/0.8782, allocations: 11.86 kB / 0.9561 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001346/0.8784, allocations: 40.5 kB / 0.9561 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000347/0.8787, allocations: 115 kB / 0.9562 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002562/0.879, allocations: 246.5 kB / 0.9565 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001383/0.8791, allocations: 56.78 kB / 0.9565 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001258/0.8793, allocations: 88.31 kB / 0.9566 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001378/0.8794, allocations: 105.3 kB / 0.9567 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.9e-05/0.8794, allocations: 14.22 kB / 0.9567 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 4.236e-05/0.8795, allocations: 9.031 kB / 0.9567 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.331e-05/0.8795, allocations: 30.22 kB / 0.9567 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.235e-05/0.8796, allocations: 55.27 kB / 0.9568 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000163/0.8798, allocations: 187.9 kB / 0.957 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.8798, allocations: 0 / 0.957 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.733e-06/0.8798, allocations: 0 / 0.957 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.601e-06/0.8798, allocations: 1.062 kB / 0.957 GB, free: 5.707 MB / 0.7169 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.001071/0.8809, allocations: 0.6276 MB / 0.9576 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.8809, allocations: 9.25 kB / 0.9576 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.959e-05/0.881, allocations: 47.64 kB / 0.9576 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.809e-05/0.881, allocations: 26.2 kB / 0.9577 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000333/0.8814, allocations: 266.1 kB / 0.9579 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.609e-05/0.8814, allocations: 9.984 kB / 0.9579 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.098e-05/0.8814, allocations: 13.38 kB / 0.958 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005954/0.882, allocations: 255.5 kB / 0.9582 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.8821, allocations: 0 / 0.9582 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.133e-05/0.8821, allocations: 7.031 kB / 0.9582 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.093e-06/0.8821, allocations: 7.125 kB / 0.9582 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007853/0.8829, allocations: 274.2 kB / 0.9585 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006967/0.8836, allocations: 0.5263 MB / 0.959 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009536/0.8846, allocations: 308.1 kB / 0.9593 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004231/0.885, allocations: 151 kB / 0.9594 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.276e-05/0.885, allocations: 1.344 kB / 0.9594 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000592/0.8856, allocations: 212.7 kB / 0.9596 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=15): time 1.713e-06/0.8857, allocations: 0 / 0.9596 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15): time 0.001382/0.887, allocations: 463.1 kB / 0.9601 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.632e-05/0.8871, allocations: 54.16 kB / 0.9601 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002001/0.8873, allocations: 215.1 kB / 0.9603 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.436e-05/0.8873, allocations: 31.95 kB / 0.9604 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.822e-05/0.8874, allocations: 133.5 kB / 0.9605 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.364e-05/0.8874, allocations: 41.45 kB / 0.9605 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.323e-05/0.8875, allocations: 4.969 kB / 0.9605 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.527e-05/0.8876, allocations: 331.2 kB / 0.9608 GB, free: 2.742 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004279/0.888, allocations: 144 kB / 0.961 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000414/0.8884, allocations: 135.7 kB / 0.9611 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004182/0.8888, allocations: 182.1 kB / 0.9613 GB, free: 2.516 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.8888, allocations: 0 / 0.9613 GB, free: 2.516 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0009403/0.8898, allocations: 415 kB / 0.9617 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 7.107e-05/0.8899, allocations: 148 kB / 0.9618 GB, free: 2.129 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.8899, allocations: 0 / 0.9618 GB, free: 2.129 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.592e-05/0.8899, allocations: 1.156 kB / 0.9618 GB, free: 2.129 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002745/0.8902, allocations: 67.44 kB / 0.9619 GB, free: 2.102 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.645e-06/0.8902, allocations: 0.7812 kB / 0.9619 GB, free: 2.102 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000271/0.8905, allocations: 65.64 kB / 0.9619 GB, free: 2.07 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.181e-05/0.8905, allocations: 4.031 kB / 0.962 GB, free: 2.07 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 7.003e-06/0.8905, allocations: 7.406 kB / 0.962 GB, free: 2.066 MB / 0.7169 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008323/0.8914, allocations: 361.8 kB / 0.9623 GB, free: 1.887 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.966e-06/0.8914, allocations: 1.031 kB / 0.9623 GB, free: 1.887 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.933e-06/0.8914, allocations: 0 / 0.9623 GB, free: 1.887 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002264/0.8916, allocations: 58.62 kB / 0.9624 GB, free: 1.867 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.09e-06/0.8916, allocations: 13.3 kB / 0.9624 GB, free: 1.855 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002323/0.8919, allocations: 54.92 kB / 0.9624 GB, free: 1.832 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.358e-05/0.8919, allocations: 4.5 kB / 0.9624 GB, free: 1.832 MB / 0.7169 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.000136/0.892, allocations: 207.6 kB / 0.9626 GB, free: 1.629 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.225e-05/0.8921, allocations: 20.8 kB / 0.9626 GB, free: 1.617 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.299e-05/0.8921, allocations: 21.31 kB / 0.9627 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.8921, allocations: 2.219 kB / 0.9627 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.166e-06/0.8922, allocations: 3.953 kB / 0.9627 GB, free: 1.594 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.588e-06/0.8922, allocations: 1 kB / 0.9627 GB, free: 1.594 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002357/0.8924, allocations: 268.7 kB / 0.9629 GB, free: 1.32 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.8924, allocations: 1.188 kB / 0.9629 GB, free: 1.32 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002555/0.8927, allocations: 62.31 kB / 0.963 GB, free: 1.297 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.544e-06/0.8927, allocations: 1.125 kB / 0.963 GB, free: 1.297 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.792e-05/0.8927, allocations: 9.359 kB / 0.963 GB, free: 1.289 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.887e-06/0.8927, allocations: 1.406 kB / 0.963 GB, free: 1.289 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.8927, allocations: 3.938 kB / 0.963 GB, free: 1.285 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008793/0.8936, allocations: 357.3 kB / 0.9633 GB, free: 1.098 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.993e-05/0.8937, allocations: 105.8 kB / 0.9634 GB, free: 0.9805 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.707e-05/0.8937, allocations: 2.062 kB / 0.9634 GB, free: 0.9805 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002432/0.894, allocations: 53.88 kB / 0.9635 GB, free: 0.957 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.432e-05/0.8941, allocations: 29.3 kB / 0.9635 GB, free: 0.9414 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.53e-05/0.8941, allocations: 7.594 kB / 0.9635 GB, free: 0.9375 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001068/0.8942, allocations: 149.6 kB / 0.9637 GB, free: 0.8281 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8942, allocations: 0 / 0.9637 GB, free: 0.8281 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003175/0.8945, allocations: 83.12 kB / 0.9638 GB, free: 0.8047 MB / 0.7169 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.001135/0.8957, allocations: 0.8853 MB / 0.9646 GB, free: 92 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001483/0.8972, allocations: 0.6654 MB / 0.9653 GB, free: 15.65 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.8972, allocations: 5.031 kB / 0.9653 GB, free: 15.65 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0004699/0.8977, allocations: 151.7 kB / 0.9654 GB, free: 15.59 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003385/0.898, allocations: 39.81 kB / 0.9655 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003425/0.9014, allocations: 1.401 MB / 0.9668 GB, free: 14.67 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003242/0.9018, allocations: 0.7291 MB / 0.9675 GB, free: 13.95 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001498/0.9019, allocations: 25.56 kB / 0.9676 GB, free: 13.94 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001325/0.9021, allocations: 57.42 kB / 0.9676 GB, free: 13.89 MB / 0.7325 GB Notification: Performance of SimCode: time 8.82e-07/0.9021, allocations: 0 / 0.9676 GB, free: 13.89 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01755/0.9196, allocations: 4.61 MB / 0.9721 GB, free: 11.75 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001907/0.9199, allocations: 219 kB / 0.9723 GB, free: 11.52 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.909/2.828, allocations: 2.672 kB / 0.9723 GB, free: 11.52 MB / 0.7325 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