Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="IBPSA_latest_IBPSA_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.001273/0.001278, allocations: 99.48 kB / 16.27 MB, free: 5.93 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.001251/0.001251, allocations: 190.5 kB / 17.2 MB, free: 5.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.407/1.407, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8099/0.8099, allocations: 126.7 MB / 417.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00228/0.00228, allocations: 67.89 kB / 0.4959 GB, free: 2.676 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3286/0.331, allocations: 78.87 MB / 0.5729 GB, free: 30.89 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.00248/0.3335, allocations: 1.496 MB / 0.5743 GB, free: 29.86 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005231/0.334, allocations: 413.4 kB / 0.5747 GB, free: 29.58 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.495e-05/0.3341, allocations: 1.938 kB / 0.5747 GB, free: 29.58 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 2.788e-05/0.3341, allocations: 4.922 kB / 0.5747 GB, free: 29.58 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.754e-05/0.3342, allocations: 15.84 kB / 0.5748 GB, free: 29.57 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001361/0.3343, allocations: 12.61 kB / 0.5748 GB, free: 29.56 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 6.7e-05/0.3344, allocations: 50.36 kB / 0.5748 GB, free: 29.54 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.931e-05/0.3345, allocations: 13.19 kB / 0.5748 GB, free: 29.54 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.05e-05/0.3346, allocations: 28.92 kB / 0.5749 GB, free: 29.52 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.638e-05/0.3346, allocations: 29.84 kB / 0.5749 GB, free: 29.5 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.778e-05/0.3347, allocations: 4.125 kB / 0.5749 GB, free: 29.5 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.135e-05/0.3347, allocations: 2.75 kB / 0.5749 GB, free: 29.5 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.659e-05/0.3347, allocations: 3.391 kB / 0.5749 GB, free: 29.5 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 3.3e-05/0.3347, allocations: 25.47 kB / 0.5749 GB, free: 29.49 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 8.033e-05/0.3348, allocations: 47.11 kB / 0.575 GB, free: 29.47 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.3348, allocations: 3.938 kB / 0.575 GB, free: 29.46 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.3348, allocations: 1.281 kB / 0.575 GB, free: 29.46 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.787e-06/0.3349, allocations: 1.375 kB / 0.575 GB, free: 29.46 MB / 446.1 MB 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.0003738/0.3352, allocations: 365 kB / 0.5753 GB, free: 29.09 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.245e-05/0.3353, allocations: 10.38 kB / 0.5753 GB, free: 29.09 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.516e-05/0.3353, allocations: 38.69 kB / 0.5754 GB, free: 29.05 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.239e-05/0.3353, allocations: 8.297 kB / 0.5754 GB, free: 29.04 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.421e-05/0.3354, allocations: 170.5 kB / 0.5755 GB, free: 28.84 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.998e-06/0.3354, allocations: 2.375 kB / 0.5755 GB, free: 28.84 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.398e-06/0.3354, allocations: 5.312 kB / 0.5755 GB, free: 28.84 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001499/0.3356, allocations: 56.78 kB / 0.5756 GB, free: 28.8 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.284e-06/0.3356, allocations: 0.5 kB / 0.5756 GB, free: 28.8 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.776e-06/0.3356, allocations: 1.703 kB / 0.5756 GB, free: 28.8 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.3356, allocations: 1.375 kB / 0.5756 GB, free: 28.8 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001321/0.3358, allocations: 37.23 kB / 0.5756 GB, free: 28.79 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003091/0.3361, allocations: 271.1 kB / 0.5759 GB, free: 28.51 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001139/0.3362, allocations: 43.03 kB / 0.5759 GB, free: 28.48 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.626e-05/0.3363, allocations: 24.72 kB / 0.576 GB, free: 28.47 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.22e-05/0.3363, allocations: 0 / 0.576 GB, free: 28.47 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.334e-05/0.3363, allocations: 33.48 kB / 0.576 GB, free: 28.43 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 8.62e-07/0.3363, allocations: 1.062 kB / 0.576 GB, free: 28.43 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003026/0.3366, allocations: 94.78 kB / 0.5761 GB, free: 28.38 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.186e-05/0.3367, allocations: 52.2 kB / 0.5761 GB, free: 28.32 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.373e-05/0.3368, allocations: 121.1 kB / 0.5762 GB, free: 28.21 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.015e-06/0.3368, allocations: 25.7 kB / 0.5763 GB, free: 28.18 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.725e-05/0.3368, allocations: 92.81 kB / 0.5764 GB, free: 28.09 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.89e-05/0.3368, allocations: 13.98 kB / 0.5764 GB, free: 28.08 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.148e-05/0.3369, allocations: 17.97 kB / 0.5764 GB, free: 28.06 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.406e-05/0.3369, allocations: 319.1 kB / 0.5767 GB, free: 27.74 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.328e-05/0.337, allocations: 25.14 kB / 0.5767 GB, free: 27.73 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.217e-05/0.3371, allocations: 19.2 kB / 0.5767 GB, free: 27.73 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001246/0.3372, allocations: 41.62 kB / 0.5768 GB, free: 27.71 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3372, allocations: 0.6562 kB / 0.5768 GB, free: 27.71 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000164/0.3374, allocations: 74.95 kB / 0.5768 GB, free: 27.67 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.267e-05/0.3374, allocations: 4.438 kB / 0.5769 GB, free: 27.67 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.419e-06/0.3374, allocations: 1.094 kB / 0.5769 GB, free: 27.67 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/0.3374, allocations: 2.062 kB / 0.5769 GB, free: 27.67 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.906e-05/0.3375, allocations: 9.484 kB / 0.5769 GB, free: 27.67 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.06e-06/0.3375, allocations: 1.594 kB / 0.5769 GB, free: 27.67 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.188e-05/0.3376, allocations: 7.062 kB / 0.5769 GB, free: 27.67 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.766e-06/0.3376, allocations: 4.547 kB / 0.5769 GB, free: 27.66 MB / 446.1 MB 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 4.618e-05/0.3377, allocations: 112.8 kB / 0.577 GB, free: 27.55 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.669e-05/0.3377, allocations: 11.94 kB / 0.577 GB, free: 27.54 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.246e-05/0.3377, allocations: 10.33 kB / 0.577 GB, free: 27.52 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.3377, allocations: 1.75 kB / 0.577 GB, free: 27.52 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.3377, allocations: 2.656 kB / 0.577 GB, free: 27.52 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-06/0.3377, allocations: 0.6094 kB / 0.577 GB, free: 27.52 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001235/0.3379, allocations: 176.2 kB / 0.5772 GB, free: 27.32 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.3379, allocations: 0.7031 kB / 0.5772 GB, free: 27.32 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.12e-05/0.338, allocations: 13.95 kB / 0.5772 GB, free: 27.32 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.338, allocations: 1.438 kB / 0.5772 GB, free: 27.32 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.845e-06/0.338, allocations: 4.844 kB / 0.5772 GB, free: 27.31 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.338, allocations: 0.625 kB / 0.5772 GB, free: 27.31 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.338, allocations: 1.375 kB / 0.5772 GB, free: 27.31 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000177/0.3382, allocations: 169.5 kB / 0.5774 GB, free: 27.17 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.825e-05/0.3382, allocations: 82.39 kB / 0.5774 GB, free: 27.07 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.599e-05/0.3382, allocations: 1.031 kB / 0.5774 GB, free: 27.07 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.146e-05/0.3383, allocations: 3.875 kB / 0.5774 GB, free: 27.07 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.568e-05/0.3383, allocations: 4.25 kB / 0.5774 GB, free: 27.07 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5e-06/0.3384, allocations: 3.609 kB / 0.5775 GB, free: 27.07 MB / 446.1 MB Notification: Performance of sorting global known variables: time 3.542e-05/0.3384, allocations: 101.7 kB / 0.5776 GB, free: 26.99 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.042e-06/0.3384, allocations: 1.219 kB / 0.5776 GB, free: 26.99 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000223/0.3386, allocations: 9.969 kB / 0.5776 GB, free: 26.98 MB / 446.1 MB 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.0003262/0.339, allocations: 0.7047 MB / 0.5782 GB, free: 26.31 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001732/0.3391, allocations: 38.28 kB / 0.5783 GB, free: 26.31 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.3392, allocations: 1.375 kB / 0.5783 GB, free: 26.31 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 7.023e-05/0.3392, allocations: 24.14 kB / 0.5783 GB, free: 26.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002094/0.3394, allocations: 8.375 kB / 0.5783 GB, free: 26.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004473/0.3399, allocations: 194.8 kB / 0.5785 GB, free: 26.12 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.164e-05/0.34, allocations: 0.6829 MB / 0.5792 GB, free: 25.43 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 3.054e-05/0.34, allocations: 5.375 kB / 0.5792 GB, free: 25.43 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.844e-05/0.3401, allocations: 14.73 kB / 0.5792 GB, free: 25.42 MB / 446.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3401, allocations: 1.031 kB / 0.5792 GB, free: 25.42 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01987/0.36, allocations: 1.492 MB / 0.5806 GB, free: 24.93 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.918/8.278, allocations: 4.094 kB / 0.5807 GB, free: 24.93 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 IBPSA_latest_IBPSA_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.fmu > IBPSA_latest_IBPSA.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1)