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.001403/0.001403, allocations: 111.3 kB / 15.99 MB, free: 6.344 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.001641/0.001642, allocations: 194.6 kB / 16.91 MB, free: 6.184 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.459/1.459, allocations: 205.1 MB / 222.8 MB, free: 4.691 MB / 174.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.725/1.725, allocations: 292.3 MB / 0.5492 GB, free: 13.64 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.001328/0.001328, allocations: 74.42 kB / 0.6717 GB, free: 26.23 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2354/0.2368, allocations: 114.5 MB / 0.7835 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002894/0.2397, allocations: 1.567 MB / 0.7851 GB, free: 12.33 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0006928/0.2404, allocations: 456.9 kB / 0.7855 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.44e-05/0.2405, allocations: 3.938 kB / 0.7855 GB, free: 11.87 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.11e-05/0.2405, allocations: 0 / 0.7855 GB, free: 11.87 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.363e-05/0.2406, allocations: 15.88 kB / 0.7855 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001712/0.2408, allocations: 11.98 kB / 0.7855 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 8.794e-05/0.2409, allocations: 51.78 kB / 0.7856 GB, free: 11.79 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.942e-05/0.241, allocations: 11.98 kB / 0.7856 GB, free: 11.78 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001074/0.2411, allocations: 19.92 kB / 0.7856 GB, free: 11.76 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.21e-05/0.2412, allocations: 23.86 kB / 0.7856 GB, free: 11.74 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.64e-05/0.2412, allocations: 4 kB / 0.7856 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.259e-05/0.2412, allocations: 8 kB / 0.7856 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.762e-05/0.2412, allocations: 7.984 kB / 0.7856 GB, free: 11.72 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.716e-05/0.2413, allocations: 23.88 kB / 0.7857 GB, free: 11.7 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 7.462e-05/0.2414, allocations: 32.16 kB / 0.7857 GB, free: 11.66 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.2414, allocations: 0 / 0.7857 GB, free: 11.66 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.262e-06/0.2414, allocations: 0 / 0.7857 GB, free: 11.66 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.41e-06/0.2414, allocations: 3.938 kB / 0.7857 GB, free: 11.66 MB / 0.6075 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.0005196/0.2419, allocations: 363.3 kB / 0.786 GB, free: 11.26 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.242, allocations: 12.03 kB / 0.7861 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.378e-05/0.242, allocations: 8.844 kB / 0.7861 GB, free: 11.24 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001534/0.2422, allocations: 172.2 kB / 0.7862 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.183e-05/0.2422, allocations: 4.375 kB / 0.7862 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.675e-05/0.2422, allocations: 4.312 kB / 0.7862 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001751/0.2424, allocations: 57.98 kB / 0.7863 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.2424, allocations: 0 / 0.7863 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.907e-06/0.2424, allocations: 4 kB / 0.7863 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.2424, allocations: 0 / 0.7863 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001229/0.2426, allocations: 39.91 kB / 0.7863 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004024/0.243, allocations: 268.9 kB / 0.7866 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001434/0.2431, allocations: 46.59 kB / 0.7866 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.962e-05/0.2432, allocations: 20.84 kB / 0.7867 GB, free: 10.53 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.512e-05/0.2432, allocations: 11.98 kB / 0.7867 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.409e-05/0.2433, allocations: 30.56 kB / 0.7867 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 9.82e-07/0.2433, allocations: 0 / 0.7867 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0003107/0.2436, allocations: 89.56 kB / 0.7868 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.466e-05/0.2436, allocations: 55.34 kB / 0.7868 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.931e-05/0.2437, allocations: 113.8 kB / 0.7869 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.47e-05/0.2437, allocations: 33.69 kB / 0.787 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.195e-05/0.2438, allocations: 88.14 kB / 0.7871 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.98e-05/0.2438, allocations: 7.891 kB / 0.7871 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.689e-05/0.2439, allocations: 21.7 kB / 0.7871 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001152/0.244, allocations: 318.8 kB / 0.7874 GB, free: 9.711 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.618e-05/0.2441, allocations: 15.98 kB / 0.7874 GB, free: 9.695 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.437e-05/0.2441, allocations: 19.98 kB / 0.7874 GB, free: 9.676 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001903/0.2443, allocations: 48.83 kB / 0.7875 GB, free: 9.625 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.2443, allocations: 0 / 0.7875 GB, free: 9.625 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001598/0.2445, allocations: 69.86 kB / 0.7875 GB, free: 9.551 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.2445, allocations: 7.938 kB / 0.7875 GB, free: 9.543 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.94e-06/0.2445, allocations: 48 / 0.7875 GB, free: 9.543 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/0.2446, allocations: 7.984 kB / 0.7876 GB, free: 9.535 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000101/0.2447, allocations: 7.984 kB / 0.7876 GB, free: 9.527 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.869e-06/0.2447, allocations: 0 / 0.7876 GB, free: 9.527 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.132e-05/0.2447, allocations: 11.98 kB / 0.7876 GB, free: 9.516 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.214e-06/0.2447, allocations: 0 / 0.7876 GB, free: 9.516 MB / 0.6075 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.907e-05/0.2448, allocations: 113.8 kB / 0.7877 GB, free: 9.395 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.713e-05/0.2449, allocations: 7.906 kB / 0.7877 GB, free: 9.387 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.802e-05/0.2449, allocations: 7.906 kB / 0.7877 GB, free: 9.371 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.2449, allocations: 0 / 0.7877 GB, free: 9.371 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.2449, allocations: 3.938 kB / 0.7877 GB, free: 9.367 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.2449, allocations: 0 / 0.7877 GB, free: 9.367 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001607/0.2451, allocations: 189.5 kB / 0.7879 GB, free: 9.133 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.2451, allocations: 0 / 0.7879 GB, free: 9.133 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.808e-05/0.2452, allocations: 11.98 kB / 0.7879 GB, free: 9.121 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.2452, allocations: 0 / 0.7879 GB, free: 9.121 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.376e-06/0.2452, allocations: 0 / 0.7879 GB, free: 9.121 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.2452, allocations: 0 / 0.7879 GB, free: 9.121 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.2452, allocations: 0 / 0.7879 GB, free: 9.121 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002011/0.2454, allocations: 179.4 kB / 0.7881 GB, free: 8.93 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.902e-05/0.2454, allocations: 81.02 kB / 0.7881 GB, free: 8.832 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.557e-05/0.2455, allocations: 0 / 0.7881 GB, free: 8.832 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.992e-05/0.2455, allocations: 4 kB / 0.7881 GB, free: 8.828 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.225e-05/0.2456, allocations: 3.984 kB / 0.7882 GB, free: 8.824 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.298e-06/0.2456, allocations: 4 kB / 0.7882 GB, free: 8.82 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.797e-05/0.2457, allocations: 91.27 kB / 0.7882 GB, free: 8.73 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1e-07/0.2457, allocations: 0 / 0.7882 GB, free: 8.73 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002152/0.2459, allocations: 12 kB / 0.7883 GB, free: 8.719 MB / 0.6075 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.0001195/0.246, allocations: 99.25 kB / 0.7883 GB, free: 8.613 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001836/0.2462, allocations: 43.91 kB / 0.7884 GB, free: 8.57 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.2462, allocations: 0 / 0.7884 GB, free: 8.57 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 6.616e-05/0.2463, allocations: 19.98 kB / 0.7884 GB, free: 8.551 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002142/0.2465, allocations: 11.92 kB / 0.7884 GB, free: 8.539 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003934/0.2469, allocations: 198 kB / 0.7886 GB, free: 8.312 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000278/0.2472, allocations: 0.6885 MB / 0.7893 GB, free: 7.598 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.24e-05/0.2472, allocations: 11.38 kB / 0.7893 GB, free: 7.586 MB / 0.6075 GB Notification: Performance of SimCode: time 2.21e-07/0.2472, allocations: 0 / 0.7893 GB, free: 7.586 MB / 0.6075 GB Notification: Performance of Templates: time 0.001944/0.2492, allocations: 0.714 MB / 0.79 GB, free: 6.875 MB / 0.6075 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)