Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.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.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_9_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.373/2.373, allocations: 387.4 MB / 394.9 MB, free: 13.38 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.001396/0.001396, allocations: 180.8 kB / 487.4 MB, free: 5.066 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.696/1.696, allocations: 221.5 MB / 0.7824 GB, free: 0.9961 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.001089/0.001089, allocations: 94.16 kB / 0.9219 GB, free: 2.234 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.812e-05/1.813e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2905/0.2906, allocations: 142.4 MB / 1.206 GB, free: 43.9 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9288/1.219, allocations: 149.1 MB / 1.352 GB, free: 18.22 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002792/1.22, allocations: 87.98 kB / 1.352 GB, free: 18.21 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.004129/1.224, allocations: 1.184 MB / 1.353 GB, free: 33.84 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.803e-06/1.224, allocations: 3.875 kB / 1.353 GB, free: 33.84 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 8.977e-06/1.224, allocations: 4 kB / 1.353 GB, free: 33.84 MB / 0.8386 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.0004165/1.224, allocations: 355.5 kB / 1.353 GB, free: 33.48 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/1.224, allocations: 8.25 kB / 1.353 GB, free: 33.48 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.357e-05/1.225, allocations: 3.875 kB / 1.353 GB, free: 33.48 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001231/1.225, allocations: 176.1 kB / 1.353 GB, free: 33.28 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.409e-05/1.225, allocations: 0 / 1.353 GB, free: 33.28 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.097e-05/1.225, allocations: 0 / 1.353 GB, free: 33.28 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.758e-05/1.225, allocations: 27.44 kB / 1.353 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.636e-05/1.225, allocations: 41.97 kB / 1.354 GB, free: 33.24 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/1.225, allocations: 0 / 1.354 GB, free: 33.24 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.203e-05/1.225, allocations: 2.812 kB / 1.354 GB, free: 33.24 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/1.225, allocations: 0 / 1.354 GB, free: 33.24 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003854/1.225, allocations: 245.2 kB / 1.354 GB, free: 33 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 7.528e-05/1.225, allocations: 41.72 kB / 1.354 GB, free: 32.97 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.109e-05/1.225, allocations: 13.06 kB / 1.354 GB, free: 32.96 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.846e-05/1.225, allocations: 0 / 1.354 GB, free: 32.96 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.746e-05/1.225, allocations: 35.2 kB / 1.354 GB, free: 32.93 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 1.283e-06/1.226, allocations: 0 / 1.354 GB, free: 32.93 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.0001678/1.226, allocations: 50.67 kB / 1.354 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.959e-05/1.226, allocations: 52.2 kB / 1.354 GB, free: 32.83 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.98e-05/1.226, allocations: 106.9 kB / 1.354 GB, free: 32.74 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.148e-05/1.226, allocations: 29.7 kB / 1.354 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.474e-05/1.226, allocations: 89.42 kB / 1.354 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.084e-05/1.226, allocations: 9.625 kB / 1.354 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.849e-06/1.226, allocations: 0 / 1.354 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.000137/1.226, allocations: 320.7 kB / 1.354 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.507e-05/1.226, allocations: 6.953 kB / 1.354 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.938e-05/1.226, allocations: 7.297 kB / 1.354 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.675e-05/1.226, allocations: 12.72 kB / 1.355 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/1.226, allocations: 0 / 1.355 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.85e-05/1.226, allocations: 58.47 kB / 1.355 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/1.226, allocations: 3.875 kB / 1.355 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.453e-06/1.226, allocations: 0.5156 kB / 1.355 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/1.226, allocations: 3.875 kB / 1.355 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001084/1.226, allocations: 15.06 kB / 1.355 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.648e-06/1.226, allocations: 1.906 kB / 1.355 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.726e-05/1.227, allocations: 9.703 kB / 1.355 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.608e-06/1.227, allocations: 4.531 kB / 1.355 GB, free: 32.25 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: 0 () * Number of discrete 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 7.395e-05/1.227, allocations: 110 kB / 1.355 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 9.231e-05/1.227, allocations: 60.06 kB / 1.355 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.122e-05/1.227, allocations: 0 / 1.355 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.056e-05/1.227, allocations: 13.06 kB / 1.355 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/1.227, allocations: 0.8906 kB / 1.355 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/1.227, allocations: 3.984 kB / 1.355 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/1.227, allocations: 0 / 1.355 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001309/1.227, allocations: 149.5 kB / 1.355 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/1.227, allocations: 3.938 kB / 1.355 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.237e-05/1.227, allocations: 14.42 kB / 1.355 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/1.227, allocations: 4.484 kB / 1.355 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.474e-06/1.227, allocations: 0 / 1.355 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.085e-06/1.227, allocations: 2.266 kB / 1.355 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/1.227, allocations: 0 / 1.355 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001374/1.227, allocations: 151 kB / 1.355 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.45e-05/1.227, allocations: 81.77 kB / 1.355 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.649e-05/1.227, allocations: 4.516 kB / 1.355 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.497e-05/1.227, allocations: 9.172 kB / 1.355 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.294e-05/1.227, allocations: 9.766 kB / 1.355 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.761e-06/1.227, allocations: 4.594 kB / 1.355 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.37e-05/1.227, allocations: 88.58 kB / 1.355 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.31e-07/1.227, allocations: 0 / 1.355 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002218/1.228, allocations: 7.812 kB / 1.355 GB, free: 31.61 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: 0 () * Number of discrete 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.0004009/1.228, allocations: 0.6796 MB / 1.356 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 8.804e-05/1.228, allocations: 20.69 kB / 1.356 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/1.228, allocations: 0 / 1.356 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 2.876e-05/1.228, allocations: 16.44 kB / 1.356 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00016/1.228, allocations: 4.594 kB / 1.356 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003783/1.229, allocations: 107.5 kB / 1.356 GB, free: 30.83 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002805/1.229, allocations: 0.6913 MB / 1.357 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.477e-05/1.229, allocations: 4.641 kB / 1.357 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.502e-05/1.229, allocations: 12.27 kB / 1.357 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of SimCode: time 2.41e-07/1.229, allocations: 3.938 kB / 1.357 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02127/1.25, allocations: 0.9194 MB / 1.358 GB, free: 30.04 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001593/1.251, allocations: 165.1 kB / 1.358 GB, free: 29.85 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.631/2.881, allocations: 0 / 1.358 GB, free: 29.85 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; mkfifo Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe >> ../files/Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.fmu > Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.mat does not exist to compare? outputFormat=mat