Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_8_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_8_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.001557/0.001557, allocations: 109.4 kB / 15.69 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001644/0.001644, allocations: 186.6 kB / 16.62 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.395/1.395, allocations: 205.1 MB / 222.5 MB, free: 4.539 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.72/1.72, allocations: 292.3 MB / 0.549 GB, free: 12.77 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 71.33 kB / 0.6718 GB, free: 26.32 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2286/0.23, allocations: 114.5 MB / 0.7836 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002454/0.2325, allocations: 1.507 MB / 0.7851 GB, free: 11.75 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0005884/0.2331, allocations: 459.8 kB / 0.7855 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.291e-05/0.2331, allocations: 0 / 0.7855 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.633e-05/0.2332, allocations: 7.875 kB / 0.7856 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 4.724e-05/0.2332, allocations: 7.875 kB / 0.7856 GB, free: 11.28 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001448/0.2334, allocations: 19.91 kB / 0.7856 GB, free: 11.26 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 7.293e-05/0.2334, allocations: 47.86 kB / 0.7856 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001015/0.2335, allocations: 19.97 kB / 0.7856 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.577e-05/0.2337, allocations: 23.86 kB / 0.7857 GB, free: 11.17 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.289e-05/0.2337, allocations: 23.86 kB / 0.7857 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.571e-05/0.2338, allocations: 4 kB / 0.7857 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 8.917e-06/0.2338, allocations: 0 / 0.7857 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.703e-05/0.2338, allocations: 8 kB / 0.7857 GB, free: 11.13 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.506e-05/0.2338, allocations: 23.86 kB / 0.7857 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 8.297e-05/0.2339, allocations: 56.03 kB / 0.7858 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.2339, allocations: 0 / 0.7858 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.173e-06/0.2339, allocations: 0 / 0.7858 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.138e-06/0.2339, allocations: 0 / 0.7858 GB, free: 11.05 MB / 0.6075 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.0004115/0.2344, allocations: 363.3 kB / 0.7861 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.311e-05/0.2344, allocations: 8.031 kB / 0.7861 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.09e-05/0.2344, allocations: 34.75 kB / 0.7862 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.338e-05/0.2345, allocations: 8.844 kB / 0.7862 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001015/0.2346, allocations: 172.2 kB / 0.7863 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.019e-05/0.2346, allocations: 8.359 kB / 0.7863 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.644e-06/0.2346, allocations: 384 / 0.7863 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001458/0.2347, allocations: 65.73 kB / 0.7864 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.582e-06/0.2348, allocations: 0 / 0.7864 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.214e-06/0.2348, allocations: 0 / 0.7864 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.2348, allocations: 3.938 kB / 0.7864 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001166/0.2349, allocations: 31.97 kB / 0.7864 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003181/0.2352, allocations: 272.9 kB / 0.7867 GB, free: 9.957 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001077/0.2353, allocations: 46.5 kB / 0.7867 GB, free: 9.902 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.646e-05/0.2354, allocations: 24.94 kB / 0.7868 GB, free: 9.875 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.46e-05/0.2354, allocations: 3.984 kB / 0.7868 GB, free: 9.871 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.665e-05/0.2355, allocations: 34.56 kB / 0.7868 GB, free: 9.828 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 9.42e-07/0.2355, allocations: 4 kB / 0.7868 GB, free: 9.824 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0002777/0.2357, allocations: 89.56 kB / 0.7869 GB, free: 9.73 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.71e-05/0.2358, allocations: 51.41 kB / 0.7869 GB, free: 9.668 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.556e-05/0.2359, allocations: 125.8 kB / 0.7871 GB, free: 9.535 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.541e-05/0.2359, allocations: 25.7 kB / 0.7871 GB, free: 9.504 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 3.834e-05/0.2359, allocations: 85.2 kB / 0.7872 GB, free: 9.418 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.596e-05/0.2359, allocations: 7.906 kB / 0.7872 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.093e-05/0.236, allocations: 25.64 kB / 0.7872 GB, free: 9.379 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.658e-05/0.2361, allocations: 318.8 kB / 0.7875 GB, free: 9.059 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.214e-05/0.2361, allocations: 15.98 kB / 0.7875 GB, free: 9.043 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.67e-05/0.2362, allocations: 19.98 kB / 0.7875 GB, free: 9.023 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001154/0.2363, allocations: 40.83 kB / 0.7876 GB, free: 8.98 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.2363, allocations: 0 / 0.7876 GB, free: 8.98 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001549/0.2365, allocations: 77.89 kB / 0.7877 GB, free: 8.898 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/0.2365, allocations: 8 kB / 0.7877 GB, free: 8.891 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.2365, allocations: 0 / 0.7877 GB, free: 8.891 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.648e-06/0.2365, allocations: 3.938 kB / 0.7877 GB, free: 8.887 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.682e-05/0.2366, allocations: 8 kB / 0.7877 GB, free: 8.879 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.073e-06/0.2366, allocations: 7.969 kB / 0.7877 GB, free: 8.871 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.589e-05/0.2367, allocations: 4 kB / 0.7877 GB, free: 8.867 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.107e-06/0.2367, allocations: 3.984 kB / 0.7877 GB, free: 8.863 MB / 0.6075 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.495e-05/0.2368, allocations: 117.8 kB / 0.7878 GB, free: 8.738 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.572e-05/0.2368, allocations: 7.906 kB / 0.7878 GB, free: 8.73 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.262e-05/0.2368, allocations: 7.891 kB / 0.7878 GB, free: 8.715 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.2368, allocations: 4 kB / 0.7878 GB, free: 8.711 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.2369, allocations: 0 / 0.7878 GB, free: 8.711 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.793e-06/0.2369, allocations: 0 / 0.7878 GB, free: 8.711 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001428/0.237, allocations: 173.5 kB / 0.788 GB, free: 8.492 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.237, allocations: 0 / 0.788 GB, free: 8.492 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.591e-05/0.2371, allocations: 11.98 kB / 0.788 GB, free: 8.48 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.2371, allocations: 4 kB / 0.788 GB, free: 8.477 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.732e-06/0.2371, allocations: 0 / 0.788 GB, free: 8.477 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.2371, allocations: 0 / 0.788 GB, free: 8.477 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.2371, allocations: 0 / 0.788 GB, free: 8.477 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001979/0.2373, allocations: 175.4 kB / 0.7882 GB, free: 8.289 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 2.918e-05/0.2374, allocations: 84.95 kB / 0.7883 GB, free: 8.188 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.322e-05/0.2374, allocations: 4 kB / 0.7883 GB, free: 8.184 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.529e-05/0.2375, allocations: 7.984 kB / 0.7883 GB, free: 8.176 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.212e-05/0.2375, allocations: 4 kB / 0.7883 GB, free: 8.172 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.927e-06/0.2375, allocations: 0 / 0.7883 GB, free: 8.172 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.845e-05/0.2376, allocations: 103.6 kB / 0.7884 GB, free: 8.07 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1e-07/0.2376, allocations: 0 / 0.7884 GB, free: 8.07 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.000214/0.2378, allocations: 8 kB / 0.7884 GB, free: 8.062 MB / 0.6075 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004397/0.2382, allocations: 0.7093 MB / 0.7891 GB, free: 7.328 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.000166/0.2384, allocations: 35.97 kB / 0.7891 GB, free: 7.293 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.2384, allocations: 0 / 0.7891 GB, free: 7.293 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 7.014e-05/0.2385, allocations: 27.97 kB / 0.7891 GB, free: 7.266 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002029/0.2387, allocations: 4 kB / 0.7891 GB, free: 7.262 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004534/0.2392, allocations: 193.9 kB / 0.7893 GB, free: 7.031 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002076/0.2394, allocations: 0.6807 MB / 0.79 GB, free: 6.324 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.236e-05/0.2394, allocations: 3.984 kB / 0.79 GB, free: 6.32 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.869e-05/0.2395, allocations: 15.44 kB / 0.79 GB, free: 6.305 MB / 0.6075 GB Notification: Performance of SimCode: time 1.8e-07/0.2395, allocations: 0 / 0.79 GB, free: 6.305 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01632/0.2558, allocations: 1.488 MB / 0.7915 GB, free: 4.949 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.182/7.438, allocations: 17.14 kB / 0.7915 GB, free: 4.941 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; mkfifo Buildings_8_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe >> ../files/Buildings_8_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.fmu > Buildings_8_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1)