Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.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.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.254/2.254, allocations: 393.5 MB / 408.4 MB, free: 11.02 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.0011/0.0011, allocations: 180 kB / 0.4901 GB, free: 2.223 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.508/1.508, allocations: 223.1 MB / 0.7992 GB, free: 14.77 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.001005/0.001005, allocations: 102.4 kB / 0.9396 GB, free: 1.934 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000393/0.000393, allocations: 6.75 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.34/0.3404, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.21/0.5504, allocations: 150.6 MB / 1.376 GB, free: 2.898 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003471/0.5508, allocations: 87.94 kB / 1.376 GB, free: 2.812 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.004027/0.5549, allocations: 1.196 MB / 1.378 GB, free: 1.609 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.876e-06/0.5549, allocations: 3.938 kB / 1.378 GB, free: 1.605 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 8.987e-06/0.5549, allocations: 0 / 1.378 GB, free: 1.605 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005133/0.5555, allocations: 363.2 kB / 1.378 GB, free: 1.203 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.747e-05/0.5555, allocations: 8.031 kB / 1.378 GB, free: 1.195 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.3e-05/0.5556, allocations: 38.56 kB / 1.378 GB, free: 1.148 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.011e-05/0.5556, allocations: 7.859 kB / 1.378 GB, free: 1.141 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001576/0.5558, allocations: 167 kB / 1.378 GB, free: 0.9375 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.773e-05/0.5558, allocations: 4 kB / 1.378 GB, free: 0.9336 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.14e-05/0.5559, allocations: 4 kB / 1.378 GB, free: 0.9297 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002028/0.5561, allocations: 57.66 kB / 1.378 GB, free: 0.8672 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.5561, allocations: 0 / 1.378 GB, free: 0.8672 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.106e-05/0.5561, allocations: 0 / 1.378 GB, free: 0.8672 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.476e-06/0.5561, allocations: 8 kB / 1.378 GB, free: 0.8594 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001369/0.5563, allocations: 39.92 kB / 1.378 GB, free: 0.8203 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004858/0.5568, allocations: 276.9 kB / 1.379 GB, free: 0.5 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001305/0.5569, allocations: 42.56 kB / 1.379 GB, free: 460 kB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.379e-05/0.5569, allocations: 7.938 kB / 1.379 GB, free: 452 kB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.187e-05/0.557, allocations: 34.56 kB / 1.379 GB, free: 408 kB / 0.8698 GB Notification: Performance of pre-optimization done (n=3): time 1.804e-06/0.557, allocations: 0 / 1.379 GB, free: 408 kB / 0.8698 GB Notification: Performance of matching and sorting (n=3): time 0.0003589/0.5573, allocations: 101.6 kB / 1.379 GB, free: 300 kB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.614e-05/0.5574, allocations: 55.36 kB / 1.379 GB, free: 232 kB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001342/0.5575, allocations: 109 kB / 1.379 GB, free: 116 kB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.85e-05/0.5576, allocations: 29.7 kB / 1.379 GB, free: 80 kB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 8.541e-05/0.5577, allocations: 92.06 kB / 1.379 GB, free: 15.98 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.201e-05/0.5577, allocations: 7.906 kB / 1.379 GB, free: 15.98 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.148e-06/0.5577, allocations: 4 kB / 1.379 GB, free: 15.97 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001421/0.5578, allocations: 318.8 kB / 1.379 GB, free: 15.65 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.681e-05/0.5579, allocations: 23.92 kB / 1.379 GB, free: 15.63 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.293e-05/0.558, allocations: 23.98 kB / 1.379 GB, free: 15.61 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.081e-05/0.5581, allocations: 16 kB / 1.379 GB, free: 15.59 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.5581, allocations: 0 / 1.379 GB, free: 15.59 MB / 0.8855 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002013/0.5583, allocations: 85.78 kB / 1.379 GB, free: 15.5 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.058e-05/0.5583, allocations: 9.719 kB / 1.379 GB, free: 15.49 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/0.5583, allocations: 4 kB / 1.379 GB, free: 15.49 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.84e-05/0.5584, allocations: 4 kB / 1.379 GB, free: 15.48 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000111/0.5585, allocations: 12.03 kB / 1.379 GB, free: 15.47 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.5585, allocations: 0 / 1.379 GB, free: 15.47 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.867e-05/0.5586, allocations: 11.94 kB / 1.379 GB, free: 15.46 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.502e-05/0.5586, allocations: 8 kB / 1.379 GB, free: 15.45 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 9.884e-05/0.5587, allocations: 110.6 kB / 1.38 GB, free: 15.34 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.29e-05/0.5587, allocations: 4 kB / 1.38 GB, free: 15.33 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.243e-05/0.5588, allocations: 11.91 kB / 1.38 GB, free: 15.32 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.5588, allocations: 4 kB / 1.38 GB, free: 15.32 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.5588, allocations: 0 / 1.38 GB, free: 15.32 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.5588, allocations: 0 / 1.38 GB, free: 15.32 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000217/0.559, allocations: 177.5 kB / 1.38 GB, free: 15.09 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.559, allocations: 3.984 kB / 1.38 GB, free: 15.09 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.698e-05/0.5591, allocations: 8 kB / 1.38 GB, free: 15.08 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.5591, allocations: 3.938 kB / 1.38 GB, free: 15.08 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.301e-05/0.5591, allocations: 4 kB / 1.38 GB, free: 15.07 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.648e-06/0.5592, allocations: 3.984 kB / 1.38 GB, free: 15.07 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.5592, allocations: 4 kB / 1.38 GB, free: 15.07 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002824/0.5595, allocations: 171.5 kB / 1.38 GB, free: 14.88 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 5.443e-05/0.5595, allocations: 85.02 kB / 1.38 GB, free: 14.78 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.88e-05/0.5595, allocations: 3.984 kB / 1.38 GB, free: 14.78 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.294e-05/0.5596, allocations: 9.719 kB / 1.38 GB, free: 14.77 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.975e-05/0.5597, allocations: 4 kB / 1.38 GB, free: 14.77 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.084e-06/0.5597, allocations: 3.984 kB / 1.38 GB, free: 14.76 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 6.093e-05/0.5598, allocations: 95.59 kB / 1.38 GB, free: 14.67 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.184e-06/0.5598, allocations: 0 / 1.38 GB, free: 14.67 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002196/0.56, allocations: 11.94 kB / 1.38 GB, free: 14.66 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0005752/0.5606, allocations: 0.7163 MB / 1.381 GB, free: 13.91 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0001864/0.5608, allocations: 47.97 kB / 1.381 GB, free: 13.87 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.5608, allocations: 4 kB / 1.381 GB, free: 13.86 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 7.571e-05/0.5609, allocations: 27.92 kB / 1.381 GB, free: 13.84 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001512/0.561, allocations: 2.438 kB / 1.381 GB, free: 13.84 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005938/0.5616, allocations: 224 kB / 1.381 GB, free: 13.57 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002796/0.5619, allocations: 0.6809 MB / 1.382 GB, free: 12.87 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 4.016e-05/0.562, allocations: 7.984 kB / 1.382 GB, free: 12.86 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.241e-05/0.562, allocations: 11.44 kB / 1.382 GB, free: 12.85 MB / 0.8855 GB Notification: Performance of SimCode: time 3.5e-07/0.5621, allocations: 0 / 1.382 GB, free: 12.85 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01425/0.5763, allocations: 1.23 MB / 1.383 GB, free: 11.79 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002147/0.5766, allocations: 207.6 kB / 1.383 GB, free: 11.55 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.784/2.36, allocations: 4 kB / 1.383 GB, free: 11.54 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; mkfifo Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe >> ../files/Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.fmu > Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.mat does not exist to compare? outputFormat=mat