Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_maint_8_0_x_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.1-maint.8.0.x/package.mo): time 1.978/1.978, allocations: 288.4 MB / 303.3 MB, free: 8.129 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.001033/0.001033, allocations: 168.5 kB / 371.9 MB, free: 10.29 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.9/1.9, allocations: 205.4 MB / 0.6307 GB, free: 9.996 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.0008368/0.000837, allocations: 86.34 kB / 0.744 GB, free: 5.93 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000423/0.000423, allocations: 19.23 kB / 0.867 GB, free: 142 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.294/0.2944, allocations: 115.3 MB / 0.9797 GB, free: 27.55 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.00175/0.2962, allocations: 1.203 MB / 0.9808 GB, free: 26.34 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0007163/0.297, allocations: 432.8 kB / 0.9812 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.535e-05/0.2971, allocations: 0 / 0.9812 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.383e-05/0.2971, allocations: 7.922 kB / 0.9813 GB, free: 25.9 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.458e-05/0.2972, allocations: 11.92 kB / 0.9813 GB, free: 25.89 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001832/0.2974, allocations: 15.98 kB / 0.9813 GB, free: 25.87 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 8.477e-05/0.2975, allocations: 51.73 kB / 0.9813 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 9.464e-05/0.2976, allocations: 7.984 kB / 0.9813 GB, free: 25.81 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001183/0.2977, allocations: 19.92 kB / 0.9814 GB, free: 25.79 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 8.747e-05/0.2978, allocations: 23.91 kB / 0.9814 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.984e-05/0.2978, allocations: 4 kB / 0.9814 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 1.261e-05/0.2978, allocations: 0 / 0.9814 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.364e-05/0.2978, allocations: 0 / 0.9814 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 2.965e-05/0.2979, allocations: 37.64 kB / 0.9814 GB, free: 25.72 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 7.645e-05/0.298, allocations: 36.16 kB / 0.9815 GB, free: 25.69 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.298, allocations: 0 / 0.9815 GB, free: 25.69 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.513e-06/0.298, allocations: 0 / 0.9815 GB, free: 25.69 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.651e-06/0.298, allocations: 0 / 0.9815 GB, free: 25.69 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.0004815/0.2985, allocations: 355.2 kB / 0.9818 GB, free: 25.29 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.134e-05/0.2985, allocations: 8.031 kB / 0.9818 GB, free: 25.29 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.111e-05/0.2986, allocations: 42.5 kB / 0.9818 GB, free: 25.23 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.267e-05/0.2986, allocations: 0 / 0.9818 GB, free: 25.23 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001566/0.2988, allocations: 182.9 kB / 0.982 GB, free: 25.02 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.735e-05/0.2988, allocations: 0 / 0.982 GB, free: 25.02 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.29e-05/0.2989, allocations: 4 kB / 0.982 GB, free: 25.01 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000204/0.2991, allocations: 61.61 kB / 0.9821 GB, free: 24.95 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.2991, allocations: 0 / 0.9821 GB, free: 24.95 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.165e-05/0.2991, allocations: 0 / 0.9821 GB, free: 24.95 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.517e-06/0.2991, allocations: 4 kB / 0.9821 GB, free: 24.94 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001449/0.2993, allocations: 43.97 kB / 0.9821 GB, free: 24.9 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004755/0.2998, allocations: 272.9 kB / 0.9824 GB, free: 24.58 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001542/0.2999, allocations: 50.5 kB / 0.9824 GB, free: 24.52 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.787e-05/0.3, allocations: 28.94 kB / 0.9825 GB, free: 24.49 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.469e-05/0.3, allocations: 0 / 0.9825 GB, free: 24.49 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.542e-05/0.3001, allocations: 34.5 kB / 0.9825 GB, free: 24.45 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 8.72e-07/0.3001, allocations: 0 / 0.9825 GB, free: 24.45 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.0003536/0.3004, allocations: 105.6 kB / 0.9826 GB, free: 24.34 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.926e-05/0.3005, allocations: 55.36 kB / 0.9826 GB, free: 24.27 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.914e-05/0.3006, allocations: 121.8 kB / 0.9828 GB, free: 24.14 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.338e-05/0.3006, allocations: 33.64 kB / 0.9828 GB, free: 24.11 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.926e-05/0.3007, allocations: 88.14 kB / 0.9829 GB, free: 24.02 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.114e-05/0.3007, allocations: 7.906 kB / 0.9829 GB, free: 24.01 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.601e-06/0.3007, allocations: 4 kB / 0.9829 GB, free: 24 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.146e-05/0.3008, allocations: 314.8 kB / 0.9832 GB, free: 23.69 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.809e-05/0.3009, allocations: 19.98 kB / 0.9832 GB, free: 23.67 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.181e-05/0.3009, allocations: 27.98 kB / 0.9832 GB, free: 23.64 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.221e-05/0.301, allocations: 19.98 kB / 0.9833 GB, free: 23.62 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.301, allocations: 0 / 0.9833 GB, free: 23.62 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001789/0.3012, allocations: 77.86 kB / 0.9833 GB, free: 23.54 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.199e-05/0.3012, allocations: 5.875 kB / 0.9833 GB, free: 23.54 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/0.3013, allocations: 4.047 kB / 0.9833 GB, free: 23.53 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.918e-05/0.3013, allocations: 3.984 kB / 0.9833 GB, free: 23.53 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000118/0.3014, allocations: 11.98 kB / 0.9833 GB, free: 23.52 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.376e-06/0.3014, allocations: 0 / 0.9833 GB, free: 23.52 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.897e-05/0.3015, allocations: 19.94 kB / 0.9834 GB, free: 23.5 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.046e-05/0.3015, allocations: 3.938 kB / 0.9834 GB, free: 23.49 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 9.289e-05/0.3016, allocations: 107.4 kB / 0.9835 GB, free: 23.38 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.821e-05/0.3016, allocations: 11.91 kB / 0.9835 GB, free: 23.37 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.381e-05/0.3017, allocations: 7.906 kB / 0.9835 GB, free: 23.36 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.3017, allocations: 4 kB / 0.9835 GB, free: 23.35 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.393e-06/0.3017, allocations: 0 / 0.9835 GB, free: 23.35 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.3017, allocations: 3.984 kB / 0.9835 GB, free: 23.35 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001487/0.3019, allocations: 177.5 kB / 0.9837 GB, free: 23.12 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.3019, allocations: 4 kB / 0.9837 GB, free: 23.12 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.328e-05/0.302, allocations: 11.98 kB / 0.9837 GB, free: 23.11 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.929e-06/0.302, allocations: 4 kB / 0.9837 GB, free: 23.11 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.337e-06/0.302, allocations: 4 kB / 0.9837 GB, free: 23.1 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.302, allocations: 3.938 kB / 0.9837 GB, free: 23.1 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.302, allocations: 0 / 0.9837 GB, free: 23.1 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002131/0.3022, allocations: 175.5 kB / 0.9839 GB, free: 22.91 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.986e-05/0.3023, allocations: 92.95 kB / 0.984 GB, free: 22.8 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.514e-05/0.3023, allocations: 0 / 0.984 GB, free: 22.8 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.939e-05/0.3024, allocations: 4 kB / 0.984 GB, free: 22.8 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.651e-05/0.3024, allocations: 7.984 kB / 0.984 GB, free: 22.79 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.137e-06/0.3024, allocations: 0 / 0.984 GB, free: 22.79 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 4.55e-05/0.3025, allocations: 91.27 kB / 0.9841 GB, free: 22.7 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.41e-07/0.3025, allocations: 0 / 0.9841 GB, free: 22.7 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002064/0.3027, allocations: 8 kB / 0.9841 GB, free: 22.69 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.0004859/0.3032, allocations: 0.7124 MB / 0.9848 GB, free: 21.95 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002036/0.3034, allocations: 55.91 kB / 0.9848 GB, free: 21.9 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.3034, allocations: 0 / 0.9848 GB, free: 21.9 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 7.477e-05/0.3035, allocations: 23.98 kB / 0.9848 GB, free: 21.88 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002197/0.3037, allocations: 2.25 kB / 0.9848 GB, free: 21.88 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005407/0.3043, allocations: 220.1 kB / 0.985 GB, free: 21.62 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001705/0.3045, allocations: 0.6809 MB / 0.9857 GB, free: 20.91 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 4.334e-05/0.3045, allocations: 7.984 kB / 0.9857 GB, free: 20.91 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.941e-05/0.3046, allocations: 11.44 kB / 0.9857 GB, free: 20.89 MB / 0.6198 GB Notification: Performance of SimCode: time 5.21e-07/0.3046, allocations: 4 kB / 0.9857 GB, free: 20.89 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01386/0.3184, allocations: 1.266 MB / 0.987 GB, free: 19.82 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001665/0.3187, allocations: 228.5 kB / 0.9872 GB, free: 19.57 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.856/2.175, allocations: 0 / 0.9872 GB, free: 19.57 MB / 0.6198 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.fmu > Buildings_maint.8.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1)