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.001126/0.001126, allocations: 108.3 kB / 16.37 MB, free: 6.473 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.001101/0.001101, allocations: 186.7 kB / 17.31 MB, free: 5.824 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.442/1.442, allocations: 205.1 MB / 223.2 MB, free: 12.27 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.773/1.773, allocations: 292.3 MB / 0.5496 GB, free: 17.51 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.001389/0.00139, allocations: 78.23 kB / 0.6729 GB, free: 5.82 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2251/0.2265, allocations: 114.5 MB / 0.7848 GB, free: 3.164 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002775/0.2293, allocations: 1.515 MB / 0.7863 GB, free: 1.633 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0007271/0.2301, allocations: 455.8 kB / 0.7867 GB, free: 1.18 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.635e-05/0.2301, allocations: 4 kB / 0.7867 GB, free: 1.176 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 3.066e-05/0.2302, allocations: 3.938 kB / 0.7867 GB, free: 1.172 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 5.763e-05/0.2302, allocations: 7.922 kB / 0.7867 GB, free: 1.164 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001587/0.2304, allocations: 19.92 kB / 0.7867 GB, free: 1.145 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 8.964e-05/0.2305, allocations: 51.78 kB / 0.7868 GB, free: 1.094 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001079/0.2306, allocations: 11.98 kB / 0.7868 GB, free: 1.082 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 9.611e-05/0.2307, allocations: 27.86 kB / 0.7868 GB, free: 1.055 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 8.099e-05/0.2308, allocations: 27.86 kB / 0.7869 GB, free: 1.027 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.813e-05/0.2308, allocations: 4 kB / 0.7869 GB, free: 1.023 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 1.043e-05/0.2308, allocations: 0 / 0.7869 GB, free: 1.023 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 2.291e-05/0.2309, allocations: 11.98 kB / 0.7869 GB, free: 1.012 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 3.495e-05/0.2309, allocations: 19.86 kB / 0.7869 GB, free: 0.9922 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 9.663e-05/0.231, allocations: 47.77 kB / 0.7869 GB, free: 0.9453 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.231, allocations: 3.984 kB / 0.7869 GB, free: 0.9414 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.944e-06/0.231, allocations: 0 / 0.7869 GB, free: 0.9414 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 5.651e-06/0.231, allocations: 0 / 0.7869 GB, free: 0.9414 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.00052/0.2316, allocations: 363.3 kB / 0.7873 GB, free: 0.5391 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.886e-05/0.2316, allocations: 12.03 kB / 0.7873 GB, free: 0.5273 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.052e-05/0.2317, allocations: 4.844 kB / 0.7873 GB, free: 0.5234 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001262/0.2318, allocations: 180.2 kB / 0.7875 GB, free: 316 kB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.378e-05/0.2318, allocations: 8.312 kB / 0.7875 GB, free: 308 kB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.274e-05/0.2318, allocations: 384 / 0.7875 GB, free: 308 kB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001564/0.232, allocations: 57.98 kB / 0.7875 GB, free: 244 kB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.232, allocations: 4 kB / 0.7875 GB, free: 240 kB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.488e-06/0.232, allocations: 0 / 0.7875 GB, free: 240 kB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.232, allocations: 4 kB / 0.7875 GB, free: 236 kB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001271/0.2322, allocations: 35.97 kB / 0.7876 GB, free: 200 kB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3809/0.6131, allocations: 268.1 kB / 0.7878 GB, free: 48.68 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001903/0.6133, allocations: 41.95 kB / 0.7879 GB, free: 48.66 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.277e-05/0.6134, allocations: 23.77 kB / 0.7879 GB, free: 48.65 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.202e-05/0.6135, allocations: 1.312 kB / 0.7879 GB, free: 48.65 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.11e-05/0.6135, allocations: 33.22 kB / 0.7879 GB, free: 48.61 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=3): time 1.864e-06/0.6135, allocations: 2.625 kB / 0.7879 GB, free: 48.61 MB / 0.6544 GB Notification: Performance of matching and sorting (n=3): time 0.0003421/0.6139, allocations: 95.55 kB / 0.788 GB, free: 48.58 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.166e-05/0.6139, allocations: 54.12 kB / 0.7881 GB, free: 48.52 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.555e-05/0.614, allocations: 120.2 kB / 0.7882 GB, free: 48.42 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 8.426e-06/0.614, allocations: 26.3 kB / 0.7882 GB, free: 48.39 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 4.016e-05/0.614, allocations: 89.08 kB / 0.7883 GB, free: 48.31 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.968e-05/0.6141, allocations: 7.031 kB / 0.7883 GB, free: 48.31 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.427e-05/0.6141, allocations: 17.81 kB / 0.7883 GB, free: 48.29 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.882e-05/0.6142, allocations: 319.6 kB / 0.7886 GB, free: 47.98 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.249e-05/0.6142, allocations: 16.27 kB / 0.7886 GB, free: 47.98 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.719e-05/0.6143, allocations: 18.12 kB / 0.7887 GB, free: 47.98 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001145/0.6144, allocations: 42.44 kB / 0.7887 GB, free: 47.97 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.6144, allocations: 0 / 0.7887 GB, free: 47.97 MB / 0.6544 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001551/0.6146, allocations: 79.23 kB / 0.7888 GB, free: 47.94 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.6146, allocations: 9.219 kB / 0.7888 GB, free: 47.93 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.6146, allocations: 3.641 kB / 0.7888 GB, free: 47.93 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.76e-05/0.6146, allocations: 0 / 0.7888 GB, free: 47.93 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001018/0.6148, allocations: 12.78 kB / 0.7888 GB, free: 47.93 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.6148, allocations: 3.188 kB / 0.7888 GB, free: 47.93 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.064e-05/0.6148, allocations: 9.344 kB / 0.7888 GB, free: 47.93 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.709e-06/0.6148, allocations: 0 / 0.7888 GB, free: 47.93 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 5.483e-05/0.6149, allocations: 112.6 kB / 0.7889 GB, free: 47.82 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.912e-05/0.6149, allocations: 9.688 kB / 0.7889 GB, free: 47.82 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.823e-05/0.615, allocations: 8.438 kB / 0.7889 GB, free: 47.81 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.615, allocations: 2.562 kB / 0.7889 GB, free: 47.81 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.615, allocations: 0.5312 kB / 0.7889 GB, free: 47.81 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.615, allocations: 4.938 kB / 0.7889 GB, free: 47.81 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001327/0.6151, allocations: 171.6 kB / 0.7891 GB, free: 47.62 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.6151, allocations: 0 / 0.7891 GB, free: 47.62 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.122e-05/0.6152, allocations: 12.42 kB / 0.7891 GB, free: 47.62 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.6152, allocations: 3.938 kB / 0.7891 GB, free: 47.62 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.001e-05/0.6152, allocations: 0 / 0.7891 GB, free: 47.62 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.6152, allocations: 0 / 0.7891 GB, free: 47.62 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.6152, allocations: 2.781 kB / 0.7891 GB, free: 47.62 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001699/0.6154, allocations: 175.6 kB / 0.7893 GB, free: 47.49 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.382e-05/0.6155, allocations: 83.64 kB / 0.7894 GB, free: 47.39 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.465e-05/0.6155, allocations: 3.938 kB / 0.7894 GB, free: 47.39 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.394e-05/0.6156, allocations: 3.906 kB / 0.7894 GB, free: 47.39 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.322e-05/0.6156, allocations: 5.906 kB / 0.7894 GB, free: 47.39 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.118e-06/0.6156, allocations: 0 / 0.7894 GB, free: 47.39 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 3.522e-05/0.6157, allocations: 100.9 kB / 0.7895 GB, free: 47.31 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6157, allocations: 0 / 0.7895 GB, free: 47.31 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002137/0.6159, allocations: 6.156 kB / 0.7895 GB, free: 47.31 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.0001073/0.616, allocations: 99.22 kB / 0.7896 GB, free: 47.23 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0001834/0.6162, allocations: 47.52 kB / 0.7896 GB, free: 47.23 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.6162, allocations: 0 / 0.7896 GB, free: 47.23 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 6.448e-05/0.6163, allocations: 23.3 kB / 0.7897 GB, free: 47.23 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002181/0.6165, allocations: 4.125 kB / 0.7897 GB, free: 47.23 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003529/0.6169, allocations: 178.6 kB / 0.7898 GB, free: 47.09 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001128/0.617, allocations: 0.6854 MB / 0.7905 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.124e-05/0.617, allocations: 12.19 kB / 0.7905 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of SimCode: time 2.11e-07/0.617, allocations: 1.406 kB / 0.7905 GB, free: 46.39 MB / 0.6544 GB Notification: Performance of Templates: time 0.001821/0.6188, allocations: 0.7009 MB / 0.7912 GB, free: 46.38 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 -lv LOG_STATS > Buildings_8_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1)