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.001211/0.001211, allocations: 86.72 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.002034/0.002034, 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.473/1.473, allocations: 223.3 MB / 240 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.557/2.557, allocations: 409.4 MB / 0.684 GB, free: 0.918 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003451/0.0003451, allocations: 11.94 kB / 0.8378 GB, free: 6.5 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7966/0.7969, allocations: 146.8 MB / 0.9811 GB, free: 6.285 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002002/0.799, allocations: 1.214 MB / 0.9823 GB, free: 5.062 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0007051/0.7997, allocations: 383.4 kB / 0.9827 GB, free: 4.68 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.542e-05/0.7998, allocations: 4 kB / 0.9827 GB, free: 4.676 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.175e-05/0.7999, allocations: 3.938 kB / 0.9827 GB, free: 4.672 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.873e-05/0.7999, allocations: 7.922 kB / 0.9827 GB, free: 4.664 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001799/0.8001, allocations: 15.98 kB / 0.9827 GB, free: 4.648 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 9.124e-05/0.8002, allocations: 39.8 kB / 0.9828 GB, free: 4.609 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001176/0.8003, allocations: 15.97 kB / 0.9828 GB, free: 4.594 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000118/0.8005, allocations: 23.91 kB / 0.9828 GB, free: 4.57 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 9.055e-05/0.8006, allocations: 19.86 kB / 0.9828 GB, free: 4.551 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.708e-05/0.8006, allocations: 4 kB / 0.9828 GB, free: 4.547 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.197e-05/0.8006, allocations: 0 / 0.9828 GB, free: 4.547 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.784e-05/0.8006, allocations: 12 kB / 0.9828 GB, free: 4.535 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.626e-05/0.8007, allocations: 25.7 kB / 0.9829 GB, free: 4.504 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 8.185e-05/0.8008, allocations: 38.12 kB / 0.9829 GB, free: 4.469 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.8008, allocations: 4 kB / 0.9829 GB, free: 4.465 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.255e-06/0.8008, allocations: 0 / 0.9829 GB, free: 4.465 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.132e-06/0.8008, allocations: 0 / 0.9829 GB, free: 4.465 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.0005621/0.8014, allocations: 355.2 kB / 0.9832 GB, free: 4.07 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.902e-05/0.8014, allocations: 15.97 kB / 0.9833 GB, free: 4.055 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.579e-05/0.8015, allocations: 34.56 kB / 0.9833 GB, free: 4.012 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.386e-05/0.8015, allocations: 3.906 kB / 0.9833 GB, free: 4.008 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001644/0.8017, allocations: 178.9 kB / 0.9835 GB, free: 3.793 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.59e-05/0.8017, allocations: 4 kB / 0.9835 GB, free: 3.789 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.634e-05/0.8018, allocations: 4 kB / 0.9835 GB, free: 3.785 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000207/0.802, allocations: 61.61 kB / 0.9835 GB, free: 3.719 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.802, allocations: 0 / 0.9835 GB, free: 3.719 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.34e-05/0.802, allocations: 4 kB / 0.9835 GB, free: 3.715 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.802, allocations: 4 kB / 0.9835 GB, free: 3.711 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000137/0.8022, allocations: 47.91 kB / 0.9836 GB, free: 3.664 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004861/0.8026, allocations: 268.9 kB / 0.9838 GB, free: 3.352 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001221/0.8028, allocations: 50.52 kB / 0.9839 GB, free: 3.293 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.122e-05/0.8029, allocations: 24.94 kB / 0.9839 GB, free: 3.266 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.254e-05/0.8029, allocations: 0 / 0.9839 GB, free: 3.266 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.238e-05/0.8029, allocations: 46.5 kB / 0.984 GB, free: 3.211 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.8029, allocations: 0 / 0.984 GB, free: 3.211 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3): time 0.0003351/0.8033, allocations: 93.64 kB / 0.984 GB, free: 3.113 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.239e-05/0.8033, allocations: 51.41 kB / 0.9841 GB, free: 3.051 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001031/0.8035, allocations: 121.8 kB / 0.9842 GB, free: 2.922 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.57e-05/0.8035, allocations: 25.7 kB / 0.9842 GB, free: 2.891 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.181e-05/0.8035, allocations: 84.14 kB / 0.9843 GB, free: 2.805 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.244e-05/0.8036, allocations: 23.73 kB / 0.9843 GB, free: 2.781 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.288e-06/0.8036, allocations: 0 / 0.9843 GB, free: 2.781 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001224/0.8037, allocations: 314.8 kB / 0.9846 GB, free: 2.465 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.6e-05/0.8038, allocations: 19.98 kB / 0.9847 GB, free: 2.445 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.584e-05/0.8038, allocations: 23.98 kB / 0.9847 GB, free: 2.422 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.689e-05/0.8039, allocations: 23.92 kB / 0.9847 GB, free: 2.398 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.8039, allocations: 4 kB / 0.9847 GB, free: 2.395 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001724/0.8041, allocations: 81.62 kB / 0.9848 GB, free: 2.309 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.8041, allocations: 7.984 kB / 0.9848 GB, free: 2.301 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.93e-06/0.8041, allocations: 0 / 0.9848 GB, free: 2.301 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.143e-05/0.8042, allocations: 0 / 0.9848 GB, free: 2.301 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.956e-05/0.8043, allocations: 8 kB / 0.9848 GB, free: 2.293 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/0.8043, allocations: 4 kB / 0.9848 GB, free: 2.289 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.218e-05/0.8043, allocations: 19.83 kB / 0.9848 GB, free: 2.27 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.556e-06/0.8044, allocations: 0 / 0.9848 GB, free: 2.27 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 8.31e-05/0.8044, allocations: 117.8 kB / 0.9849 GB, free: 2.145 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.584e-05/0.8045, allocations: 3.953 kB / 0.9849 GB, free: 2.141 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.756e-05/0.8045, allocations: 11.89 kB / 0.9849 GB, free: 2.125 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.8045, allocations: 0 / 0.9849 GB, free: 2.125 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.8045, allocations: 0 / 0.9849 GB, free: 2.125 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.8045, allocations: 3.938 kB / 0.9849 GB, free: 2.121 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001827/0.8047, allocations: 165.7 kB / 0.9851 GB, free: 1.91 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.8047, allocations: 0 / 0.9851 GB, free: 1.91 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.706e-05/0.8048, allocations: 27.92 kB / 0.9851 GB, free: 1.883 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/0.8048, allocations: 3.953 kB / 0.9851 GB, free: 1.879 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.887e-06/0.8049, allocations: 0 / 0.9851 GB, free: 1.879 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.8049, allocations: 0 / 0.9851 GB, free: 1.879 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.8049, allocations: 0 / 0.9851 GB, free: 1.879 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002306/0.8051, allocations: 183.7 kB / 0.9853 GB, free: 1.684 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.22e-05/0.8052, allocations: 77.11 kB / 0.9854 GB, free: 1.59 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.662e-05/0.8052, allocations: 3.953 kB / 0.9854 GB, free: 1.586 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.729e-05/0.8053, allocations: 7.984 kB / 0.9854 GB, free: 1.578 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.811e-05/0.8053, allocations: 4 kB / 0.9854 GB, free: 1.574 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.038e-06/0.8053, allocations: 0 / 0.9854 GB, free: 1.574 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.82e-05/0.8054, allocations: 99.64 kB / 0.9855 GB, free: 1.477 MB / 0.7325 GB Notification: Performance of sort global known variables: time 9e-08/0.8054, allocations: 0 / 0.9855 GB, free: 1.477 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002153/0.8056, allocations: 15.91 kB / 0.9855 GB, free: 1.461 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.0005951/0.8062, allocations: 0.7046 MB / 0.9862 GB, free: 0.7266 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001719/0.8064, allocations: 47.97 kB / 0.9862 GB, free: 0.6797 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/0.8064, allocations: 0 / 0.9862 GB, free: 0.6797 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 7.57e-05/0.8065, allocations: 27.92 kB / 0.9863 GB, free: 0.6523 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002271/0.8067, allocations: 13.91 kB / 0.9863 GB, free: 0.6406 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00052/0.8073, allocations: 212.1 kB / 0.9865 GB, free: 400 kB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000329/0.8076, allocations: 0.6887 MB / 0.9872 GB, free: 15.68 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 3.799e-05/0.8076, allocations: 4 kB / 0.9872 GB, free: 15.67 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.846e-05/0.8077, allocations: 15.44 kB / 0.9872 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of SimCode: time 4e-07/0.8077, allocations: 0 / 0.9872 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01311/0.8208, allocations: 1.258 MB / 0.9884 GB, free: 14.59 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001934/0.8211, allocations: 212 kB / 0.9886 GB, free: 14.35 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.864/2.685, allocations: 0 / 0.9886 GB, free: 14.35 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