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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0011/0.0011, allocations: 86.95 kB / 15.06 MB, free: 1.09 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.001313/0.001313, allocations: 168.7 kB / 15.95 MB, free: 204 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.475/1.475, allocations: 223.3 MB / 240 MB, free: 5.391 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.562/2.562, allocations: 390.4 MB / 0.6655 GB, free: 2.953 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004534/0.0004536, allocations: 15.94 kB / 0.8149 GB, free: 14.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8317/0.8321, allocations: 142.3 MB / 0.9539 GB, free: 8.336 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.001705/0.8339, allocations: 1.204 MB / 0.955 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006432/0.8346, allocations: 389.9 kB / 0.9554 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.371e-05/0.8346, allocations: 1.375 kB / 0.9554 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.355e-05/0.8346, allocations: 3.984 kB / 0.9554 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001075/0.8348, allocations: 12.98 kB / 0.9554 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001608/0.8349, allocations: 10.61 kB / 0.9554 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.447e-05/0.835, allocations: 45.61 kB / 0.9555 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001053/0.8351, allocations: 12.2 kB / 0.9555 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.715e-05/0.8352, allocations: 25.09 kB / 0.9555 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.118e-05/0.8353, allocations: 23.95 kB / 0.9555 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.776e-05/0.8354, allocations: 1.094 kB / 0.9555 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.218e-05/0.8354, allocations: 2.188 kB / 0.9555 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.431e-05/0.8354, allocations: 5.125 kB / 0.9555 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.558e-05/0.8354, allocations: 32.92 kB / 0.9556 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.978e-05/0.8355, allocations: 30.25 kB / 0.9556 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.8355, allocations: 0 / 0.9556 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.703e-06/0.8355, allocations: 4 kB / 0.9556 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.734e-06/0.8355, allocations: 1.188 kB / 0.9556 GB, free: 6.93 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004244/0.836, allocations: 355.5 kB / 0.9559 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.78e-05/0.836, allocations: 9.188 kB / 0.956 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.203e-05/0.8361, allocations: 35.56 kB / 0.956 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.757e-05/0.8361, allocations: 9.859 kB / 0.956 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001014/0.8362, allocations: 179.2 kB / 0.9562 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.163e-05/0.8362, allocations: 5.312 kB / 0.9562 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.162e-05/0.8362, allocations: 1.125 kB / 0.9562 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001631/0.8364, allocations: 59.08 kB / 0.9562 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.655e-06/0.8364, allocations: 0 / 0.9562 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.917e-06/0.8364, allocations: 0 / 0.9562 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.8364, allocations: 1.469 kB / 0.9562 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001279/0.8366, allocations: 47.36 kB / 0.9563 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003329/0.8369, allocations: 270.5 kB / 0.9565 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001114/0.837, allocations: 52.52 kB / 0.9566 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.829e-05/0.8371, allocations: 26.97 kB / 0.9566 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.814e-05/0.8371, allocations: 5.031 kB / 0.9566 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.732e-05/0.8372, allocations: 31.88 kB / 0.9567 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.343e-06/0.8372, allocations: 0 / 0.9567 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0003197/0.8375, allocations: 111.1 kB / 0.9568 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.921e-05/0.8375, allocations: 51.41 kB / 0.9568 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.133e-05/0.8376, allocations: 116.8 kB / 0.9569 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.919e-06/0.8376, allocations: 33.64 kB / 0.9569 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.391e-05/0.8377, allocations: 86.64 kB / 0.957 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.675e-05/0.8377, allocations: 16.94 kB / 0.957 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.647e-06/0.8377, allocations: 1.156 kB / 0.957 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.624e-05/0.8378, allocations: 320.3 kB / 0.9574 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.421e-05/0.8378, allocations: 21.86 kB / 0.9574 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.241e-05/0.8379, allocations: 16.36 kB / 0.9574 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.553e-05/0.838, allocations: 25.73 kB / 0.9574 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.838, allocations: 0.9375 kB / 0.9574 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001564/0.8381, allocations: 74.73 kB / 0.9575 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/0.8382, allocations: 4.531 kB / 0.9575 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.8382, allocations: 4.938 kB / 0.9575 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/0.8382, allocations: 7.953 kB / 0.9575 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.725e-05/0.8383, allocations: 13.64 kB / 0.9575 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.8383, allocations: 0 / 0.9575 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.029e-05/0.8384, allocations: 13.27 kB / 0.9575 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.127e-06/0.8384, allocations: 1 kB / 0.9575 GB, free: 5.031 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: 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 6.104e-05/0.8384, allocations: 112.2 kB / 0.9576 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.509e-05/0.8385, allocations: 6.312 kB / 0.9576 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.681e-05/0.8385, allocations: 13.25 kB / 0.9577 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.8385, allocations: 4.828 kB / 0.9577 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.8385, allocations: 0 / 0.9577 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.8385, allocations: 5.484 kB / 0.9577 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001233/0.8386, allocations: 166.2 kB / 0.9578 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.8387, allocations: 0 / 0.9578 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.661e-05/0.8387, allocations: 12.61 kB / 0.9578 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.8387, allocations: 1.469 kB / 0.9578 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.294e-06/0.8387, allocations: 0 / 0.9578 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.8387, allocations: 0 / 0.9578 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.8388, allocations: 9.172 kB / 0.9578 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000178/0.8389, allocations: 177.4 kB / 0.958 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.333e-05/0.839, allocations: 78.39 kB / 0.9581 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.533e-05/0.839, allocations: 4.875 kB / 0.9581 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.675e-05/0.8391, allocations: 8.781 kB / 0.9581 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.951e-05/0.8391, allocations: 5.297 kB / 0.9581 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.041e-06/0.8391, allocations: 5.547 kB / 0.9581 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.365e-05/0.8392, allocations: 104.1 kB / 0.9582 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8392, allocations: 0 / 0.9582 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002136/0.8394, allocations: 7.406 kB / 0.9582 GB, free: 4.309 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: 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.0003723/0.8398, allocations: 0.7163 MB / 0.9589 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001748/0.8399, allocations: 50.19 kB / 0.959 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.84, allocations: 1.344 kB / 0.959 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.404e-05/0.84, allocations: 23.55 kB / 0.959 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002201/0.8403, allocations: 2.344 kB / 0.959 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004843/0.8408, allocations: 225.4 kB / 0.9592 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001261/0.8409, allocations: 0.6819 MB / 0.9599 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.666e-05/0.8409, allocations: 11.91 kB / 0.9599 GB, free: 2.668 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.854e-05/0.841, allocations: 11.44 kB / 0.9599 GB, free: 2.656 MB / 0.7169 GB Notification: Performance of SimCode: time 2.21e-07/0.841, allocations: 0 / 0.9599 GB, free: 2.656 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01081/0.8518, allocations: 1.243 MB / 0.9611 GB, free: 2.125 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001411/0.852, allocations: 213.2 kB / 0.9613 GB, free: 1.887 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.9/2.752, allocations: 0 / 0.9613 GB, free: 1.887 MB / 0.7169 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