Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_maint_7_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_7_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 7.0.3-maint.7.0.x/package.mo): time 1.454/1.454, allocations: 252 MB / 267.3 MB, free: 10.84 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009852/0.0009852, allocations: 181.9 kB / 327 MB, free: 2.078 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.969/1.969, allocations: 205.4 MB / 0.578 GB, free: 20.12 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000792/0.0007919, allocations: 94.28 kB / 0.6826 GB, free: 12.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003834/0.0003835, allocations: 8.188 kB / 0.7971 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2624/0.2628, allocations: 106.3 MB / 0.9009 GB, free: 63.35 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.001752/0.2646, allocations: 1.227 MB / 0.9021 GB, free: 62.11 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0006507/0.2653, allocations: 455.5 kB / 0.9026 GB, free: 61.66 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.921e-05/0.2654, allocations: 0 / 0.9026 GB, free: 61.66 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.097e-05/0.2654, allocations: 0 / 0.9026 GB, free: 61.66 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 7.543e-05/0.2655, allocations: 19.84 kB / 0.9026 GB, free: 61.64 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001957/0.2657, allocations: 19.98 kB / 0.9026 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 8.823e-05/0.2658, allocations: 47.73 kB / 0.9026 GB, free: 61.57 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001267/0.2659, allocations: 8 kB / 0.9027 GB, free: 61.56 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001173/0.2661, allocations: 23.92 kB / 0.9027 GB, free: 61.54 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 9.306e-05/0.2662, allocations: 23.91 kB / 0.9027 GB, free: 61.52 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.162e-05/0.2662, allocations: 0 / 0.9027 GB, free: 61.52 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.34e-05/0.2662, allocations: 4 kB / 0.9027 GB, free: 61.51 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.226e-05/0.2662, allocations: 11.92 kB / 0.9027 GB, free: 61.5 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 5.016e-05/0.2663, allocations: 45.58 kB / 0.9028 GB, free: 61.45 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 9.161e-05/0.2664, allocations: 31.88 kB / 0.9028 GB, free: 61.42 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.88e-06/0.2664, allocations: 0 / 0.9028 GB, free: 61.42 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.345e-06/0.2664, allocations: 0 / 0.9028 GB, free: 61.42 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.019e-06/0.2664, allocations: 0 / 0.9028 GB, free: 61.42 MB / 0.6042 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.0004432/0.2669, allocations: 359.7 kB / 0.9031 GB, free: 61.02 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.973e-05/0.2669, allocations: 12.03 kB / 0.9031 GB, free: 61.01 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.402e-05/0.267, allocations: 34.73 kB / 0.9032 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.687e-05/0.267, allocations: 8.844 kB / 0.9032 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001006/0.2671, allocations: 176.2 kB / 0.9033 GB, free: 60.75 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.105e-05/0.2671, allocations: 8.312 kB / 0.9034 GB, free: 60.74 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.48e-05/0.2672, allocations: 4.375 kB / 0.9034 GB, free: 60.73 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000181/0.2673, allocations: 61.73 kB / 0.9034 GB, free: 60.67 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.836e-05/0.2674, allocations: 0 / 0.9034 GB, free: 60.67 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.23e-05/0.2674, allocations: 8 kB / 0.9034 GB, free: 60.66 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.98e-06/0.2674, allocations: 0 / 0.9034 GB, free: 60.66 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001313/0.2676, allocations: 39.97 kB / 0.9035 GB, free: 60.62 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003767/0.268, allocations: 276.9 kB / 0.9037 GB, free: 60.3 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001201/0.2681, allocations: 50.48 kB / 0.9038 GB, free: 60.24 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.477e-05/0.2682, allocations: 28.94 kB / 0.9038 GB, free: 60.21 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.174e-05/0.2682, allocations: 4 kB / 0.9038 GB, free: 60.21 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.01e-05/0.2682, allocations: 34.56 kB / 0.9038 GB, free: 60.16 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=3): time 1.252e-06/0.2682, allocations: 0 / 0.9038 GB, free: 60.16 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3): time 0.0003237/0.2686, allocations: 105.5 kB / 0.9039 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.318e-05/0.2686, allocations: 51.41 kB / 0.904 GB, free: 59.99 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.655e-05/0.2687, allocations: 125.8 kB / 0.9041 GB, free: 59.86 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.54e-05/0.2687, allocations: 25.7 kB / 0.9041 GB, free: 59.83 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 5.662e-05/0.2688, allocations: 96.06 kB / 0.9042 GB, free: 59.73 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.505e-05/0.2688, allocations: 7.906 kB / 0.9042 GB, free: 59.72 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.639e-06/0.2688, allocations: 0 / 0.9042 GB, free: 59.72 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 8.253e-05/0.2689, allocations: 318.8 kB / 0.9045 GB, free: 59.4 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.643e-05/0.269, allocations: 19.98 kB / 0.9046 GB, free: 59.38 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.577e-05/0.2691, allocations: 23.98 kB / 0.9046 GB, free: 59.36 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001258/0.2692, allocations: 48.83 kB / 0.9046 GB, free: 59.31 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.2692, allocations: 0 / 0.9046 GB, free: 59.31 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001621/0.2694, allocations: 89.5 kB / 0.9047 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.049e-05/0.2694, allocations: 8 kB / 0.9047 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.2694, allocations: 0 / 0.9047 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.992e-05/0.2694, allocations: 0 / 0.9047 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001187/0.2696, allocations: 11.98 kB / 0.9047 GB, free: 59.2 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.2696, allocations: 0 / 0.9047 GB, free: 59.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.241e-05/0.2696, allocations: 8 kB / 0.9047 GB, free: 59.19 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.847e-06/0.2697, allocations: 4 kB / 0.9047 GB, free: 59.18 MB / 0.6042 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.736e-05/0.2697, allocations: 113.8 kB / 0.9049 GB, free: 59.06 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.888e-05/0.2698, allocations: 11.89 kB / 0.9049 GB, free: 59.05 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.355e-05/0.2698, allocations: 11.84 kB / 0.9049 GB, free: 59.04 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-06/0.2698, allocations: 0 / 0.9049 GB, free: 59.04 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.2698, allocations: 4 kB / 0.9049 GB, free: 59.03 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.2698, allocations: 0 / 0.9049 GB, free: 59.03 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001645/0.27, allocations: 169.6 kB / 0.905 GB, free: 58.82 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.27, allocations: 4 kB / 0.905 GB, free: 58.81 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.98e-05/0.2701, allocations: 11.98 kB / 0.9051 GB, free: 58.8 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.333e-06/0.2701, allocations: 3.938 kB / 0.9051 GB, free: 58.8 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.198e-05/0.2701, allocations: 4 kB / 0.9051 GB, free: 58.79 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.2701, allocations: 0 / 0.9051 GB, free: 58.79 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.2701, allocations: 0 / 0.9051 GB, free: 58.79 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002102/0.2703, allocations: 179.4 kB / 0.9052 GB, free: 58.6 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.891e-05/0.2704, allocations: 85.02 kB / 0.9053 GB, free: 58.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.672e-05/0.2704, allocations: 384 / 0.9053 GB, free: 58.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.707e-05/0.2705, allocations: 7.984 kB / 0.9053 GB, free: 58.49 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.658e-05/0.2705, allocations: 8 kB / 0.9053 GB, free: 58.48 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.268e-06/0.2706, allocations: 0 / 0.9053 GB, free: 58.48 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 4.226e-05/0.2706, allocations: 95.27 kB / 0.9054 GB, free: 58.39 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2706, allocations: 0 / 0.9054 GB, free: 58.39 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0001995/0.2708, allocations: 8 kB / 0.9054 GB, free: 58.38 MB / 0.6042 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.0004163/0.2712, allocations: 0.7201 MB / 0.9061 GB, free: 57.64 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0001864/0.2714, allocations: 47.95 kB / 0.9062 GB, free: 57.59 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2714, allocations: 0 / 0.9062 GB, free: 57.59 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 6.559e-05/0.2715, allocations: 27.98 kB / 0.9062 GB, free: 57.56 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002095/0.2717, allocations: 5.969 kB / 0.9062 GB, free: 57.56 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000472/0.2722, allocations: 220 kB / 0.9064 GB, free: 57.3 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001266/0.2724, allocations: 0.6926 MB / 0.9071 GB, free: 56.59 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 3.611e-05/0.2724, allocations: 0 / 0.9071 GB, free: 56.59 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.498e-05/0.2724, allocations: 11.44 kB / 0.9071 GB, free: 56.57 MB / 0.6042 GB Notification: Performance of SimCode: time 2.31e-07/0.2725, allocations: 0 / 0.9071 GB, free: 56.57 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01127/0.2837, allocations: 1.266 MB / 0.9083 GB, free: 55.49 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000209/0.284, allocations: 239.5 kB / 0.9086 GB, free: 55.23 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.75/2.034, allocations: 0 / 0.9086 GB, free: 55.23 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.fmu > Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1)