Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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: translateModel(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc") translateModel(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001578/0.001578, allocations: 105 kB / 16.36 MB, free: 6.426 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.00145/0.00145, allocations: 195.5 kB / 17.3 MB, free: 5.801 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.464/1.464, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.8/1.8, allocations: 292.3 MB / 0.5496 GB, free: 17.5 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001626/0.001627, allocations: 72.45 kB / 0.6729 GB, free: 5.824 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2327/0.2343, allocations: 114.6 MB / 0.7848 GB, free: 3.156 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.003459/0.2378, allocations: 1.496 MB / 0.7863 GB, free: 1.641 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0008316/0.2387, allocations: 459.8 kB / 0.7867 GB, free: 1.184 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.371e-05/0.2388, allocations: 0 / 0.7867 GB, free: 1.184 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 4.646e-05/0.2388, allocations: 3.938 kB / 0.7867 GB, free: 1.18 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 6.966e-05/0.2389, allocations: 15.81 kB / 0.7867 GB, free: 1.164 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001858/0.2391, allocations: 15.95 kB / 0.7867 GB, free: 1.148 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001042/0.2392, allocations: 47.8 kB / 0.7868 GB, free: 1.102 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001188/0.2394, allocations: 15.98 kB / 0.7868 GB, free: 1.086 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001026/0.2395, allocations: 23.92 kB / 0.7868 GB, free: 1.062 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 8.53e-05/0.2396, allocations: 19.92 kB / 0.7868 GB, free: 1.043 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.027e-05/0.2396, allocations: 7.938 kB / 0.7868 GB, free: 1.035 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 1.702e-05/0.2396, allocations: 4 kB / 0.7868 GB, free: 1.031 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 2.071e-05/0.2397, allocations: 7.984 kB / 0.7868 GB, free: 1.023 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 4.242e-05/0.2397, allocations: 23.86 kB / 0.7869 GB, free: 1 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001479/0.2399, allocations: 51.7 kB / 0.7869 GB, free: 0.9492 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.2399, allocations: 0 / 0.7869 GB, free: 0.9492 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.223e-06/0.2399, allocations: 0 / 0.7869 GB, free: 0.9492 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 4.519e-06/0.2399, allocations: 0 / 0.7869 GB, free: 0.9492 MB / 0.6544 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.0005178/0.2404, allocations: 367.3 kB / 0.7873 GB, free: 0.543 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.2405, allocations: 8.031 kB / 0.7873 GB, free: 0.5352 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.53e-05/0.2405, allocations: 8.844 kB / 0.7873 GB, free: 0.5273 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001442/0.2406, allocations: 180.2 kB / 0.7875 GB, free: 320 kB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.617e-05/0.2407, allocations: 384 / 0.7875 GB, free: 320 kB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.754e-05/0.2407, allocations: 4.375 kB / 0.7875 GB, free: 316 kB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002089/0.2409, allocations: 57.98 kB / 0.7875 GB, free: 252 kB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.909e-06/0.2409, allocations: 7.922 kB / 0.7875 GB, free: 244 kB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.332e-05/0.241, allocations: 7.984 kB / 0.7875 GB, free: 236 kB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.241, allocations: 0 / 0.7875 GB, free: 236 kB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001328/0.2411, allocations: 35.92 kB / 0.7876 GB, free: 200 kB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.502/0.7431, allocations: 268.7 kB / 0.7878 GB, free: 48.65 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002423/0.7434, allocations: 38.84 kB / 0.7879 GB, free: 48.63 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.68e-05/0.7435, allocations: 24.02 kB / 0.7879 GB, free: 48.62 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.45e-05/0.7436, allocations: 1.594 kB / 0.7879 GB, free: 48.62 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.616e-05/0.7436, allocations: 38.16 kB / 0.7879 GB, free: 48.58 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=3): time 2.845e-06/0.7436, allocations: 2.656 kB / 0.7879 GB, free: 48.58 MB / 0.6544 GB Notification: Performance of matching and sorting (n=3): time 0.0003881/0.744, allocations: 87.03 kB / 0.788 GB, free: 48.55 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.65e-05/0.7441, allocations: 53.66 kB / 0.7881 GB, free: 48.49 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001157/0.7442, allocations: 118.1 kB / 0.7882 GB, free: 48.39 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.609e-05/0.7442, allocations: 27.42 kB / 0.7882 GB, free: 48.36 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 6.434e-05/0.7443, allocations: 89.23 kB / 0.7883 GB, free: 48.28 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.47e-05/0.7443, allocations: 5.578 kB / 0.7883 GB, free: 48.28 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.638e-05/0.7444, allocations: 20.08 kB / 0.7883 GB, free: 48.26 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 9.753e-05/0.7445, allocations: 318.4 kB / 0.7886 GB, free: 47.95 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.211e-05/0.7446, allocations: 23.67 kB / 0.7886 GB, free: 47.95 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.48e-05/0.7446, allocations: 16.11 kB / 0.7886 GB, free: 47.95 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001155/0.7448, allocations: 38.23 kB / 0.7887 GB, free: 47.94 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.7448, allocations: 4.75 kB / 0.7887 GB, free: 47.94 MB / 0.6544 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001621/0.7449, allocations: 76.33 kB / 0.7888 GB, free: 47.91 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.244e-05/0.745, allocations: 9.062 kB / 0.7888 GB, free: 47.9 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.745, allocations: 0 / 0.7888 GB, free: 47.9 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.652e-05/0.745, allocations: 3.141 kB / 0.7888 GB, free: 47.9 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001315/0.7452, allocations: 13.19 kB / 0.7888 GB, free: 47.9 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.103e-05/0.7452, allocations: 7.156 kB / 0.7888 GB, free: 47.9 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.749e-05/0.7452, allocations: 6.969 kB / 0.7888 GB, free: 47.9 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.173e-05/0.7453, allocations: 2.312 kB / 0.7888 GB, free: 47.9 MB / 0.6544 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 8.055e-05/0.7453, allocations: 108.8 kB / 0.7889 GB, free: 47.79 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.842e-05/0.7454, allocations: 7.094 kB / 0.7889 GB, free: 47.79 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.367e-05/0.7454, allocations: 12.25 kB / 0.7889 GB, free: 47.78 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.7454, allocations: 3.75 kB / 0.7889 GB, free: 47.78 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.7454, allocations: 0.5312 kB / 0.7889 GB, free: 47.78 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.7455, allocations: 0 / 0.7889 GB, free: 47.78 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002003/0.7457, allocations: 174.6 kB / 0.7891 GB, free: 47.59 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/0.7457, allocations: 0 / 0.7891 GB, free: 47.59 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.802e-05/0.7457, allocations: 9.062 kB / 0.7891 GB, free: 47.59 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.17e-06/0.7458, allocations: 8.5 kB / 0.7891 GB, free: 47.59 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.809e-06/0.7458, allocations: 0 / 0.7891 GB, free: 47.59 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.7458, allocations: 0 / 0.7891 GB, free: 47.59 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.7458, allocations: 0.5625 kB / 0.7891 GB, free: 47.59 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001956/0.746, allocations: 173 kB / 0.7893 GB, free: 47.46 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 3.325e-05/0.746, allocations: 88.09 kB / 0.7894 GB, free: 47.36 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.98e-05/0.7461, allocations: 3.938 kB / 0.7894 GB, free: 47.36 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.771e-05/0.7461, allocations: 4.781 kB / 0.7894 GB, free: 47.36 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.979e-05/0.7462, allocations: 6.703 kB / 0.7894 GB, free: 47.36 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.21e-06/0.7462, allocations: 1.469 kB / 0.7894 GB, free: 47.36 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 5.307e-05/0.7463, allocations: 95.5 kB / 0.7895 GB, free: 47.28 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1e-07/0.7463, allocations: 0.5938 kB / 0.7895 GB, free: 47.28 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002239/0.7465, allocations: 10.19 kB / 0.7895 GB, free: 47.28 MB / 0.6544 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.0001611/0.7467, allocations: 101.6 kB / 0.7896 GB, free: 47.2 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002305/0.7469, allocations: 39.66 kB / 0.7896 GB, free: 47.2 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.7469, allocations: 0 / 0.7896 GB, free: 47.2 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 6.95e-05/0.747, allocations: 21.98 kB / 0.7896 GB, free: 47.2 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002528/0.7473, allocations: 7.188 kB / 0.7896 GB, free: 47.2 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000528/0.7478, allocations: 156.7 kB / 0.7898 GB, free: 47.09 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002499/0.7481, allocations: 0.6833 MB / 0.7905 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 5.512e-05/0.7482, allocations: 6.516 kB / 0.7905 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.934e-05/0.7482, allocations: 8.031 kB / 0.7905 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of SimCode: time 6.92e-07/0.7482, allocations: 0.7188 kB / 0.7905 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of Templates: time 0.003261/0.7515, allocations: 457.7 kB / 0.7909 GB, free: 46.39 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.makefile (rm -f Buildings_8_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; mkfifo Buildings_8_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe >> ../files/Buildings_8_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.sim & ./Buildings_8_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > Buildings_8_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1)