Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_8_0_0_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_0_0_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 8.0.0/package.mo): time 2.873/2.873, allocations: 287.5 MB / 302.4 MB, free: 8.355 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001398/0.001398, allocations: 178 kB / 371 MB, free: 10.86 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.25/2.25, allocations: 205.4 MB / 0.6297 GB, free: 10.58 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009523/0.0009521, allocations: 91.05 kB / 0.743 GB, free: 6.586 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006514/0.0006519, allocations: 13.14 kB / 0.8659 GB, free: 140.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2246/0.2253, allocations: 115.3 MB / 0.9785 GB, free: 28.26 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.001888/0.2272, allocations: 1.215 MB / 0.9796 GB, free: 27.03 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0008092/0.2281, allocations: 433.1 kB / 0.9801 GB, free: 26.6 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.652e-05/0.2281, allocations: 3.938 kB / 0.9801 GB, free: 26.59 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.985e-05/0.2282, allocations: 0 / 0.9801 GB, free: 26.59 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.408e-05/0.2283, allocations: 15.8 kB / 0.9801 GB, free: 26.58 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001688/0.2284, allocations: 19.97 kB / 0.9801 GB, free: 26.56 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 8.919e-05/0.2285, allocations: 43.8 kB / 0.9801 GB, free: 26.52 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 9.365e-05/0.2286, allocations: 12 kB / 0.9801 GB, free: 26.5 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001006/0.2288, allocations: 19.92 kB / 0.9802 GB, free: 26.48 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 7.972e-05/0.2289, allocations: 27.84 kB / 0.9802 GB, free: 26.46 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.863e-05/0.2289, allocations: 0 / 0.9802 GB, free: 26.46 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 1.839e-05/0.2289, allocations: 4 kB / 0.9802 GB, free: 26.45 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.472e-05/0.2289, allocations: 3.984 kB / 0.9802 GB, free: 26.45 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.259e-05/0.229, allocations: 33.7 kB / 0.9802 GB, free: 26.41 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 6.894e-05/0.2291, allocations: 24.17 kB / 0.9803 GB, free: 26.39 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.2291, allocations: 0 / 0.9803 GB, free: 26.39 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.785e-06/0.2291, allocations: 0 / 0.9803 GB, free: 26.39 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.478e-06/0.2291, allocations: 7.938 kB / 0.9803 GB, free: 26.38 MB / 0.6198 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.0004921/0.2296, allocations: 359.1 kB / 0.9806 GB, free: 25.98 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/0.2297, allocations: 12.03 kB / 0.9806 GB, free: 25.97 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.608e-05/0.2297, allocations: 34.56 kB / 0.9806 GB, free: 25.93 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.896e-05/0.2297, allocations: 7.953 kB / 0.9807 GB, free: 25.92 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001074/0.2299, allocations: 170.9 kB / 0.9808 GB, free: 25.71 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.22e-05/0.2299, allocations: 0 / 0.9808 GB, free: 25.71 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.527e-05/0.2299, allocations: 4 kB / 0.9808 GB, free: 25.71 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002212/0.2301, allocations: 61.67 kB / 0.9809 GB, free: 25.64 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.208e-06/0.2302, allocations: 0 / 0.9809 GB, free: 25.64 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.201e-05/0.2302, allocations: 0 / 0.9809 GB, free: 25.64 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.2302, allocations: 0 / 0.9809 GB, free: 25.64 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002178/0.2304, allocations: 47.91 kB / 0.9809 GB, free: 25.59 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003962/0.2308, allocations: 268.9 kB / 0.9812 GB, free: 25.28 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001682/0.231, allocations: 50.55 kB / 0.9812 GB, free: 25.22 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001173/0.2311, allocations: 28.94 kB / 0.9813 GB, free: 25.19 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.72e-05/0.2312, allocations: 4 kB / 0.9813 GB, free: 25.19 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.2e-05/0.2312, allocations: 30.56 kB / 0.9813 GB, free: 25.15 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 2.384e-06/0.2312, allocations: 0 / 0.9813 GB, free: 25.15 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.000455/0.2317, allocations: 109.5 kB / 0.9814 GB, free: 25.04 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.485e-05/0.2317, allocations: 55.34 kB / 0.9815 GB, free: 24.97 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.274e-05/0.2318, allocations: 125.8 kB / 0.9816 GB, free: 24.84 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.219e-05/0.2318, allocations: 25.7 kB / 0.9816 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.778e-05/0.2319, allocations: 88.14 kB / 0.9817 GB, free: 24.71 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.997e-05/0.2319, allocations: 7.891 kB / 0.9817 GB, free: 24.71 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.46e-06/0.2319, allocations: 4 kB / 0.9817 GB, free: 24.7 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.06e-05/0.232, allocations: 318.8 kB / 0.982 GB, free: 24.38 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001127/0.2321, allocations: 27.92 kB / 0.982 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001072/0.2322, allocations: 20.17 kB / 0.982 GB, free: 24.34 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001178/0.2324, allocations: 28.06 kB / 0.9821 GB, free: 24.31 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2324, allocations: 0 / 0.9821 GB, free: 24.31 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002709/0.2327, allocations: 81.52 kB / 0.9821 GB, free: 24.22 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.2327, allocations: 4 kB / 0.9821 GB, free: 24.22 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.2327, allocations: 4 kB / 0.9822 GB, free: 24.21 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.773e-05/0.2327, allocations: 4 kB / 0.9822 GB, free: 24.21 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001545/0.2329, allocations: 15.98 kB / 0.9822 GB, free: 24.2 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.2329, allocations: 3.953 kB / 0.9822 GB, free: 24.19 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.881e-05/0.233, allocations: 4 kB / 0.9822 GB, free: 24.19 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.355e-05/0.233, allocations: 11.97 kB / 0.9822 GB, free: 24.18 MB / 0.6198 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.855e-05/0.2331, allocations: 109.8 kB / 0.9823 GB, free: 24.06 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.488e-05/0.2332, allocations: 7.906 kB / 0.9823 GB, free: 24.05 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.846e-05/0.2332, allocations: 7.906 kB / 0.9823 GB, free: 24.04 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.2332, allocations: 4 kB / 0.9823 GB, free: 24.04 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.2332, allocations: 0 / 0.9823 GB, free: 24.04 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.84e-06/0.2332, allocations: 3.953 kB / 0.9823 GB, free: 24.03 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001731/0.2334, allocations: 177.6 kB / 0.9825 GB, free: 23.81 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.2334, allocations: 0 / 0.9825 GB, free: 23.81 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001153/0.2336, allocations: 11.94 kB / 0.9825 GB, free: 23.8 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.2336, allocations: 0 / 0.9825 GB, free: 23.8 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.33e-05/0.2336, allocations: 3.984 kB / 0.9825 GB, free: 23.79 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.2336, allocations: 0 / 0.9825 GB, free: 23.79 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.2336, allocations: 4 kB / 0.9825 GB, free: 23.79 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000293/0.2339, allocations: 175.5 kB / 0.9827 GB, free: 23.6 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.009e-05/0.234, allocations: 88.94 kB / 0.9828 GB, free: 23.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.957e-05/0.234, allocations: 0 / 0.9828 GB, free: 23.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001355/0.2341, allocations: 12 kB / 0.9828 GB, free: 23.48 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.161e-05/0.2342, allocations: 3.984 kB / 0.9828 GB, free: 23.48 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.823e-06/0.2342, allocations: 0 / 0.9828 GB, free: 23.48 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 4.713e-05/0.2343, allocations: 95.27 kB / 0.9829 GB, free: 23.39 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.11e-07/0.2343, allocations: 0 / 0.9829 GB, free: 23.39 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002718/0.2346, allocations: 4 kB / 0.9829 GB, free: 23.38 MB / 0.6198 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.0005043/0.2351, allocations: 0.7162 MB / 0.9836 GB, free: 22.64 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002664/0.2354, allocations: 51.97 kB / 0.9836 GB, free: 22.59 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.2354, allocations: 0 / 0.9836 GB, free: 22.59 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001243/0.2355, allocations: 27.92 kB / 0.9836 GB, free: 22.56 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002656/0.2358, allocations: 0 / 0.9836 GB, free: 22.56 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005765/0.2364, allocations: 220.1 kB / 0.9839 GB, free: 22.31 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001341/0.2365, allocations: 0.6848 MB / 0.9845 GB, free: 21.6 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 4.901e-05/0.2366, allocations: 336 / 0.9845 GB, free: 21.6 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.268e-05/0.2366, allocations: 15.42 kB / 0.9845 GB, free: 21.58 MB / 0.6198 GB Notification: Performance of SimCode: time 7.82e-07/0.2367, allocations: 0 / 0.9845 GB, free: 21.58 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02303/0.2597, allocations: 1.252 MB / 0.9858 GB, free: 20.5 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003007/0.2601, allocations: 208.8 kB / 0.986 GB, free: 20.27 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.521/2.781, allocations: 8 kB / 0.986 GB, free: 20.26 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.fmu > Buildings_8.0.0_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1)