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/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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001296/0.001296, allocations: 99.47 kB / 15.05 MB, free: 1.105 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.001733/0.001733, allocations: 177.3 kB / 15.94 MB, free: 228 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.592/1.592, allocations: 223.2 MB / 239.9 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.567/2.567, allocations: 409.2 MB / 0.6838 GB, free: 0.9219 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003606/0.0003608, allocations: 8 kB / 0.8375 GB, free: 6.543 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8285/0.8289, allocations: 146.8 MB / 0.9809 GB, free: 6.281 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.001687/0.8306, allocations: 1.199 MB / 0.982 GB, free: 5.074 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0005774/0.8312, allocations: 391.5 kB / 0.9824 GB, free: 4.684 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.66e-05/0.8312, allocations: 0 / 0.9824 GB, free: 4.684 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.903e-05/0.8313, allocations: 3.984 kB / 0.9824 GB, free: 4.68 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.318e-05/0.8313, allocations: 11.98 kB / 0.9824 GB, free: 4.668 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001446/0.8315, allocations: 15.86 kB / 0.9824 GB, free: 4.652 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 7.862e-05/0.8316, allocations: 31.95 kB / 0.9825 GB, free: 4.621 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 9.274e-05/0.8317, allocations: 11.97 kB / 0.9825 GB, free: 4.609 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 9.282e-05/0.8318, allocations: 27.92 kB / 0.9825 GB, free: 4.582 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 7.883e-05/0.8319, allocations: 23.86 kB / 0.9825 GB, free: 4.559 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.251e-05/0.8319, allocations: 0 / 0.9825 GB, free: 4.559 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.273e-05/0.8319, allocations: 0 / 0.9825 GB, free: 4.559 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.796e-05/0.8319, allocations: 11.92 kB / 0.9826 GB, free: 4.547 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.717e-05/0.832, allocations: 33.7 kB / 0.9826 GB, free: 4.508 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 6.349e-05/0.832, allocations: 22.19 kB / 0.9826 GB, free: 4.488 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 2.404e-06/0.8321, allocations: 4 kB / 0.9826 GB, free: 4.484 MB / 0.7325 GB Notification: Performance of FrontEnd: time 9.22e-07/0.8321, allocations: 0 / 0.9826 GB, free: 4.484 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.068e-06/0.8321, allocations: 0 / 0.9826 GB, free: 4.484 MB / 0.7325 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.0004845/0.8326, allocations: 363.1 kB / 0.983 GB, free: 4.082 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/0.8326, allocations: 12.03 kB / 0.983 GB, free: 4.07 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.791e-05/0.8327, allocations: 30.56 kB / 0.983 GB, free: 4.031 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.653e-05/0.8327, allocations: 7.906 kB / 0.983 GB, free: 4.023 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001182/0.8328, allocations: 171 kB / 0.9832 GB, free: 3.816 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.311e-05/0.8328, allocations: 4 kB / 0.9832 GB, free: 3.812 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.677e-06/0.8328, allocations: 0 / 0.9832 GB, free: 3.812 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001679/0.833, allocations: 65.62 kB / 0.9832 GB, free: 3.742 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.113e-06/0.833, allocations: 0 / 0.9832 GB, free: 3.742 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.13e-05/0.833, allocations: 4 kB / 0.9832 GB, free: 3.738 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.8331, allocations: 0 / 0.9832 GB, free: 3.738 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001321/0.8332, allocations: 39.97 kB / 0.9833 GB, free: 3.699 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000392/0.8336, allocations: 276.8 kB / 0.9835 GB, free: 3.379 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001285/0.8337, allocations: 58.48 kB / 0.9836 GB, free: 3.312 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.29e-05/0.8338, allocations: 0 / 0.9836 GB, free: 3.312 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.696e-05/0.8338, allocations: 34.56 kB / 0.9836 GB, free: 3.27 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=3): time 8.51e-07/0.8338, allocations: 3.938 kB / 0.9836 GB, free: 3.266 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3): time 0.0003106/0.8341, allocations: 97.69 kB / 0.9837 GB, free: 3.164 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.971e-05/0.8342, allocations: 59.41 kB / 0.9838 GB, free: 3.094 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.947e-05/0.8343, allocations: 114.2 kB / 0.9839 GB, free: 2.973 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.535e-05/0.8343, allocations: 29.7 kB / 0.9839 GB, free: 2.938 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.685e-05/0.8344, allocations: 88.14 kB / 0.984 GB, free: 2.848 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.064e-05/0.8344, allocations: 11.75 kB / 0.984 GB, free: 2.836 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.767e-06/0.8344, allocations: 0 / 0.984 GB, free: 2.836 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001113/0.8345, allocations: 322.8 kB / 0.9843 GB, free: 2.512 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.744e-05/0.8346, allocations: 23.98 kB / 0.9843 GB, free: 2.488 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.638e-05/0.8346, allocations: 15.98 kB / 0.9844 GB, free: 2.473 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.672e-05/0.8347, allocations: 23.98 kB / 0.9844 GB, free: 2.449 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.8347, allocations: 0 / 0.9844 GB, free: 2.449 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001628/0.8349, allocations: 81.62 kB / 0.9845 GB, free: 2.363 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.8349, allocations: 5.719 kB / 0.9845 GB, free: 2.359 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.8349, allocations: 0 / 0.9845 GB, free: 2.359 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.067e-05/0.8349, allocations: 7.938 kB / 0.9845 GB, free: 2.352 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.957e-05/0.835, allocations: 15.92 kB / 0.9845 GB, free: 2.336 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.8351, allocations: 0 / 0.9845 GB, free: 2.336 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.484e-05/0.8351, allocations: 11.91 kB / 0.9845 GB, free: 2.324 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.718e-06/0.8351, allocations: 7.984 kB / 0.9845 GB, free: 2.316 MB / 0.7325 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 7.998e-05/0.8352, allocations: 113.8 kB / 0.9846 GB, free: 2.195 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.517e-05/0.8353, allocations: 7.953 kB / 0.9846 GB, free: 2.188 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.457e-05/0.8353, allocations: 7.906 kB / 0.9846 GB, free: 2.176 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.8353, allocations: 0 / 0.9846 GB, free: 2.176 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.8353, allocations: 0 / 0.9846 GB, free: 2.176 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.8353, allocations: 0 / 0.9846 GB, free: 2.176 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000165/0.8355, allocations: 177.6 kB / 0.9848 GB, free: 1.953 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.8355, allocations: 0 / 0.9848 GB, free: 1.953 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.789e-05/0.8356, allocations: 12 kB / 0.9848 GB, free: 1.941 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.8356, allocations: 0 / 0.9848 GB, free: 1.941 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.202e-05/0.8356, allocations: 7.938 kB / 0.9848 GB, free: 1.934 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.8356, allocations: 0 / 0.9848 GB, free: 1.934 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.8356, allocations: 3.938 kB / 0.9848 GB, free: 1.93 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002293/0.8358, allocations: 179.4 kB / 0.985 GB, free: 1.738 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.716e-05/0.8359, allocations: 81.09 kB / 0.9851 GB, free: 1.641 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.516e-05/0.8359, allocations: 4 kB / 0.9851 GB, free: 1.637 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.295e-05/0.836, allocations: 11.95 kB / 0.9851 GB, free: 1.625 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.529e-05/0.836, allocations: 3.984 kB / 0.9851 GB, free: 1.621 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.948e-06/0.836, allocations: 384 / 0.9851 GB, free: 1.621 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.298e-05/0.8361, allocations: 99.31 kB / 0.9852 GB, free: 1.523 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8361, allocations: 4 kB / 0.9852 GB, free: 1.52 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002125/0.8363, allocations: 7.906 kB / 0.9852 GB, free: 1.512 MB / 0.7325 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.0004579/0.8368, allocations: 0.7163 MB / 0.9859 GB, free: 0.7656 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001634/0.837, allocations: 43.97 kB / 0.9859 GB, free: 0.7227 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.837, allocations: 0 / 0.9859 GB, free: 0.7227 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 7.039e-05/0.837, allocations: 19.98 kB / 0.986 GB, free: 0.7031 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001422/0.8372, allocations: 17.5 kB / 0.986 GB, free: 0.6875 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000466/0.8377, allocations: 212.1 kB / 0.9862 GB, free: 448 kB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002523/0.8379, allocations: 0.6887 MB / 0.9868 GB, free: 15.72 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 3.121e-05/0.838, allocations: 4 kB / 0.9869 GB, free: 15.72 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.283e-05/0.838, allocations: 15.44 kB / 0.9869 GB, free: 15.7 MB / 0.7481 GB Notification: Performance of SimCode: time 2.2e-07/0.838, allocations: 0 / 0.9869 GB, free: 15.7 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9389/1.777, allocations: 1.237 MB / 0.9881 GB, free: 14.65 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002819/1.777, allocations: 214.2 kB / 0.9883 GB, free: 14.4 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.286/4.063, allocations: 0 / 0.9883 GB, free: 14.4 MB / 0.7481 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) Environment - environmentSimulation: 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