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.578/1.578, allocations: 251.9 MB / 266.9 MB, free: 11.03 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.001287/0.001287, allocations: 174.9 kB / 326.5 MB, free: 2.242 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.916/1.916, allocations: 205.4 MB / 0.5775 GB, free: 20.29 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.0008164/0.0008167, allocations: 83.73 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003623/0.0003625, allocations: 9.656 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.247/0.2473, allocations: 106.3 MB / 0.9002 GB, free: 63.84 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.001544/0.2489, allocations: 1.211 MB / 0.9013 GB, free: 62.62 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0005581/0.2495, allocations: 428.7 kB / 0.9018 GB, free: 62.19 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.449e-05/0.2495, allocations: 0 / 0.9018 GB, free: 62.19 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.727e-05/0.2496, allocations: 7.938 kB / 0.9018 GB, free: 62.18 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 5.476e-05/0.2496, allocations: 15.97 kB / 0.9018 GB, free: 62.17 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001432/0.2498, allocations: 15.92 kB / 0.9018 GB, free: 62.15 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 6.527e-05/0.2499, allocations: 31.89 kB / 0.9018 GB, free: 62.12 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.431e-05/0.25, allocations: 15.97 kB / 0.9018 GB, free: 62.11 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 8.772e-05/0.25, allocations: 19.92 kB / 0.9019 GB, free: 62.09 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 7.663e-05/0.2501, allocations: 23.86 kB / 0.9019 GB, free: 62.06 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.248e-05/0.2502, allocations: 4 kB / 0.9019 GB, free: 62.06 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 2.126e-05/0.2502, allocations: 4 kB / 0.9019 GB, free: 62.05 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.239e-05/0.2502, allocations: 0 / 0.9019 GB, free: 62.05 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.346e-05/0.2502, allocations: 37.64 kB / 0.9019 GB, free: 62.01 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 5.816e-05/0.2503, allocations: 27.92 kB / 0.9019 GB, free: 61.98 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2503, allocations: 4 kB / 0.902 GB, free: 61.98 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.585e-06/0.2503, allocations: 0 / 0.902 GB, free: 61.98 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.22e-06/0.2503, allocations: 0 / 0.902 GB, free: 61.98 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.0003971/0.2507, allocations: 357.5 kB / 0.9023 GB, free: 61.59 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.2508, allocations: 12.03 kB / 0.9023 GB, free: 61.57 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.759e-05/0.2508, allocations: 34.56 kB / 0.9023 GB, free: 61.53 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.702e-05/0.2508, allocations: 11.86 kB / 0.9024 GB, free: 61.52 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.084e-05/0.2509, allocations: 163.1 kB / 0.9025 GB, free: 61.32 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.062e-05/0.2509, allocations: 4 kB / 0.9025 GB, free: 61.32 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.282e-05/0.251, allocations: 0 / 0.9025 GB, free: 61.32 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000158/0.2511, allocations: 61.67 kB / 0.9026 GB, free: 61.25 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.707e-06/0.2511, allocations: 7.938 kB / 0.9026 GB, free: 61.24 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.009e-05/0.2512, allocations: 4 kB / 0.9026 GB, free: 61.24 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.2512, allocations: 0 / 0.9026 GB, free: 61.24 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001241/0.2513, allocations: 39.97 kB / 0.9026 GB, free: 61.2 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003351/0.2516, allocations: 280.8 kB / 0.9029 GB, free: 60.88 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001079/0.2518, allocations: 46.56 kB / 0.9029 GB, free: 60.82 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.698e-05/0.2518, allocations: 0 / 0.9029 GB, free: 60.82 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.811e-05/0.2518, allocations: 34.5 kB / 0.903 GB, free: 60.78 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=3): time 9.52e-07/0.2518, allocations: 0 / 0.903 GB, free: 60.78 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3): time 0.0002937/0.2521, allocations: 101.7 kB / 0.9031 GB, free: 60.67 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.577e-05/0.2522, allocations: 59.36 kB / 0.9031 GB, free: 60.6 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.372e-05/0.2522, allocations: 113.8 kB / 0.9032 GB, free: 60.48 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 8.486e-06/0.2522, allocations: 29.7 kB / 0.9033 GB, free: 60.45 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.459e-05/0.2523, allocations: 95.98 kB / 0.9033 GB, free: 60.35 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.385e-05/0.2523, allocations: 7.891 kB / 0.9034 GB, free: 60.34 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.987e-06/0.2523, allocations: 0 / 0.9034 GB, free: 60.34 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.151e-05/0.2524, allocations: 318.8 kB / 0.9037 GB, free: 60.02 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.207e-05/0.2524, allocations: 19.98 kB / 0.9037 GB, free: 60 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.47e-05/0.2525, allocations: 28.11 kB / 0.9037 GB, free: 59.97 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.207e-05/0.2526, allocations: 24.06 kB / 0.9037 GB, free: 59.95 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-06/0.2526, allocations: 0 / 0.9037 GB, free: 59.95 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001452/0.2527, allocations: 73.67 kB / 0.9038 GB, free: 59.87 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/0.2527, allocations: 11.98 kB / 0.9038 GB, free: 59.86 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.2528, allocations: 4 kB / 0.9038 GB, free: 59.86 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.144e-05/0.2528, allocations: 3.938 kB / 0.9038 GB, free: 59.85 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.683e-05/0.2529, allocations: 8 kB / 0.9038 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.652e-06/0.2529, allocations: 7.953 kB / 0.9038 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.952e-05/0.2529, allocations: 11.89 kB / 0.9038 GB, free: 59.82 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.177e-06/0.253, allocations: 8 kB / 0.9038 GB, free: 59.82 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.502e-05/0.253, allocations: 109.8 kB / 0.904 GB, free: 59.7 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.263e-05/0.253, allocations: 4 kB / 0.904 GB, free: 59.7 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.356e-05/0.2531, allocations: 7.906 kB / 0.904 GB, free: 59.68 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.2531, allocations: 3.984 kB / 0.904 GB, free: 59.68 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.2531, allocations: 0 / 0.904 GB, free: 59.68 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.2531, allocations: 7.953 kB / 0.904 GB, free: 59.67 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001258/0.2532, allocations: 173.6 kB / 0.9041 GB, free: 59.45 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.2532, allocations: 0 / 0.9041 GB, free: 59.45 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.531e-05/0.2533, allocations: 15.92 kB / 0.9042 GB, free: 59.44 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.2533, allocations: 4 kB / 0.9042 GB, free: 59.43 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.705e-06/0.2533, allocations: 0 / 0.9042 GB, free: 59.43 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.031e-06/0.2533, allocations: 0 / 0.9042 GB, free: 59.43 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.2533, allocations: 7.984 kB / 0.9042 GB, free: 59.43 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001847/0.2535, allocations: 179.4 kB / 0.9043 GB, free: 59.23 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.012e-05/0.2536, allocations: 85.02 kB / 0.9044 GB, free: 59.13 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.448e-05/0.2536, allocations: 4 kB / 0.9044 GB, free: 59.13 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.663e-05/0.2537, allocations: 7.984 kB / 0.9044 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.868e-05/0.2537, allocations: 0 / 0.9044 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.07e-06/0.2537, allocations: 4 kB / 0.9044 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.461e-05/0.2538, allocations: 91.27 kB / 0.9045 GB, free: 59.03 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2538, allocations: 0 / 0.9045 GB, free: 59.03 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002051/0.254, allocations: 8 kB / 0.9045 GB, free: 59.02 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 (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.0003591/0.2543, allocations: 0.7124 MB / 0.9052 GB, free: 58.28 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.000161/0.2545, allocations: 47.97 kB / 0.9053 GB, free: 58.23 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.2545, allocations: 0 / 0.9053 GB, free: 58.23 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 6.407e-05/0.2546, allocations: 27.92 kB / 0.9053 GB, free: 58.21 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001349/0.2547, allocations: 4 kB / 0.9053 GB, free: 58.2 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004316/0.2552, allocations: 220.1 kB / 0.9055 GB, free: 57.95 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001154/0.2553, allocations: 0.6848 MB / 0.9062 GB, free: 57.24 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 3.395e-05/0.2553, allocations: 4.328 kB / 0.9062 GB, free: 57.23 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.59e-05/0.2554, allocations: 26.11 kB / 0.9062 GB, free: 57.21 MB / 0.6042 GB Notification: Performance of SimCode: time 2e-07/0.2554, allocations: 0 / 0.9062 GB, free: 57.21 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01141/0.2668, allocations: 1.233 MB / 0.9074 GB, free: 56.16 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000186/0.2671, allocations: 215.2 kB / 0.9076 GB, free: 55.92 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.557/1.824, allocations: 0 / 0.9076 GB, free: 55.92 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)