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: translateModel(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.451/1.451, allocations: 252 MB / 268 MB, free: 10.86 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.001041/0.001041, allocations: 180 kB / 327.6 MB, free: 2.109 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.95/1.95, allocations: 205.4 MB / 0.5786 GB, free: 20.18 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.0008046/0.0008045, allocations: 97.97 kB / 0.6832 GB, free: 12.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003489/0.0003493, allocations: 10 kB / 0.7976 GB, free: 134.8 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2177/0.218, allocations: 106.3 MB / 0.9015 GB, free: 63.35 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.001732/0.2198, allocations: 1.235 MB / 0.9027 GB, free: 62.1 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0007037/0.2206, allocations: 455.5 kB / 0.9031 GB, free: 61.65 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.031e-05/0.2206, allocations: 4 kB / 0.9031 GB, free: 61.64 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.336e-05/0.2207, allocations: 0 / 0.9031 GB, free: 61.64 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.678e-05/0.2207, allocations: 15.86 kB / 0.9031 GB, free: 61.63 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001699/0.2209, allocations: 11.98 kB / 0.9031 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 7.75e-05/0.221, allocations: 51.73 kB / 0.9032 GB, free: 61.57 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001096/0.2211, allocations: 8 kB / 0.9032 GB, free: 61.56 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001112/0.2212, allocations: 19.91 kB / 0.9032 GB, free: 61.54 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 8.392e-05/0.2213, allocations: 23.91 kB / 0.9032 GB, free: 61.52 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.337e-05/0.2214, allocations: 4 kB / 0.9032 GB, free: 61.51 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.194e-05/0.2214, allocations: 4 kB / 0.9032 GB, free: 61.51 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.891e-05/0.2214, allocations: 7.938 kB / 0.9032 GB, free: 61.5 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.253e-05/0.2215, allocations: 53.5 kB / 0.9033 GB, free: 61.44 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 6.433e-05/0.2215, allocations: 27.94 kB / 0.9033 GB, free: 61.41 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.2215, allocations: 0 / 0.9033 GB, free: 61.41 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.623e-06/0.2216, allocations: 0 / 0.9033 GB, free: 61.41 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.74e-06/0.2216, allocations: 0 / 0.9033 GB, free: 61.41 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.0004537/0.222, allocations: 359.6 kB / 0.9037 GB, free: 61.02 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.2221, allocations: 12.03 kB / 0.9037 GB, free: 61 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.117e-05/0.2221, allocations: 4.844 kB / 0.9037 GB, free: 61 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001048/0.2222, allocations: 176.2 kB / 0.9038 GB, free: 60.79 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.454e-05/0.2223, allocations: 8.312 kB / 0.9039 GB, free: 60.78 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.371e-05/0.2223, allocations: 4.375 kB / 0.9039 GB, free: 60.78 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001833/0.2225, allocations: 57.98 kB / 0.9039 GB, free: 60.71 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.467e-06/0.2225, allocations: 0 / 0.9039 GB, free: 60.71 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.28e-05/0.2225, allocations: 8 kB / 0.9039 GB, free: 60.71 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.2225, allocations: 0 / 0.9039 GB, free: 60.71 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001306/0.2226, allocations: 43.97 kB / 0.904 GB, free: 60.66 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003774/0.223, allocations: 272.9 kB / 0.9042 GB, free: 60.35 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001234/0.2232, allocations: 46.5 kB / 0.9043 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.21e-05/0.2233, allocations: 24.94 kB / 0.9043 GB, free: 60.27 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.862e-05/0.2233, allocations: 0 / 0.9043 GB, free: 60.27 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.133e-05/0.2233, allocations: 46.56 kB / 0.9043 GB, free: 60.21 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.2233, allocations: 0 / 0.9043 GB, free: 60.21 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3): time 0.0003266/0.2236, allocations: 93.56 kB / 0.9044 GB, free: 60.11 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.875e-05/0.2237, allocations: 59.33 kB / 0.9045 GB, free: 60.04 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.227e-05/0.2238, allocations: 121.8 kB / 0.9046 GB, free: 59.91 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 9.829e-06/0.2238, allocations: 29.64 kB / 0.9046 GB, free: 59.88 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.592e-05/0.2238, allocations: 92.08 kB / 0.9047 GB, free: 59.79 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.005e-05/0.2239, allocations: 11.89 kB / 0.9047 GB, free: 59.77 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.349e-06/0.2239, allocations: 0 / 0.9047 GB, free: 59.77 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.967e-05/0.2239, allocations: 322.8 kB / 0.905 GB, free: 59.45 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.543e-05/0.224, allocations: 15.98 kB / 0.9051 GB, free: 59.43 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.715e-05/0.2241, allocations: 23.98 kB / 0.9051 GB, free: 59.41 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001223/0.2242, allocations: 48.83 kB / 0.9051 GB, free: 59.36 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.2242, allocations: 0 / 0.9051 GB, free: 59.36 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001632/0.2244, allocations: 89.8 kB / 0.9052 GB, free: 59.27 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.2244, allocations: 4 kB / 0.9052 GB, free: 59.26 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.2244, allocations: 48 / 0.9052 GB, free: 59.26 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/0.2244, allocations: 3.984 kB / 0.9052 GB, free: 59.26 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000113/0.2246, allocations: 11.98 kB / 0.9052 GB, free: 59.25 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.027e-06/0.2246, allocations: 0 / 0.9052 GB, free: 59.25 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.574e-05/0.2247, allocations: 15.98 kB / 0.9052 GB, free: 59.23 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.326e-06/0.2247, allocations: 0 / 0.9052 GB, free: 59.23 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 7.326e-05/0.2248, allocations: 121.7 kB / 0.9054 GB, free: 59.1 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.73e-05/0.2248, allocations: 3.906 kB / 0.9054 GB, free: 59.1 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.755e-05/0.2248, allocations: 7.906 kB / 0.9054 GB, free: 59.09 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.2248, allocations: 0 / 0.9054 GB, free: 59.09 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.2248, allocations: 0 / 0.9054 GB, free: 59.09 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.2248, allocations: 3.984 kB / 0.9054 GB, free: 59.08 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001332/0.225, allocations: 173.6 kB / 0.9055 GB, free: 58.86 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.225, allocations: 4 kB / 0.9055 GB, free: 58.86 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.13e-05/0.2251, allocations: 19.98 kB / 0.9056 GB, free: 58.84 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.2251, allocations: 0 / 0.9056 GB, free: 58.84 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.706e-06/0.2251, allocations: 0 / 0.9056 GB, free: 58.84 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.2251, allocations: 0 / 0.9056 GB, free: 58.84 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.2251, allocations: 0 / 0.9056 GB, free: 58.84 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002097/0.2253, allocations: 183.4 kB / 0.9057 GB, free: 58.64 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.503e-05/0.2254, allocations: 81.02 kB / 0.9058 GB, free: 58.55 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.452e-05/0.2254, allocations: 0 / 0.9058 GB, free: 58.55 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.521e-05/0.2255, allocations: 4 kB / 0.9058 GB, free: 58.54 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.421e-05/0.2255, allocations: 7.984 kB / 0.9058 GB, free: 58.54 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.53e-06/0.2255, allocations: 0 / 0.9058 GB, free: 58.54 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.601e-05/0.2256, allocations: 103.2 kB / 0.9059 GB, free: 58.43 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2256, allocations: 0 / 0.9059 GB, free: 58.43 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002042/0.2258, allocations: 8 kB / 0.9059 GB, free: 58.43 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.0001024/0.2259, allocations: 99.25 kB / 0.906 GB, free: 58.32 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0001734/0.2261, allocations: 51.91 kB / 0.9061 GB, free: 58.27 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.2261, allocations: 0 / 0.9061 GB, free: 58.27 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 6.788e-05/0.2261, allocations: 23.98 kB / 0.9061 GB, free: 58.25 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002076/0.2264, allocations: 11.92 kB / 0.9061 GB, free: 58.23 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003575/0.2267, allocations: 212.2 kB / 0.9063 GB, free: 58 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001295/0.2269, allocations: 0.6848 MB / 0.907 GB, free: 57.29 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.372e-05/0.2269, allocations: 7.438 kB / 0.907 GB, free: 57.28 MB / 0.6042 GB Notification: Performance of SimCode: time 4.31e-07/0.2269, allocations: 3.938 kB / 0.907 GB, free: 57.27 MB / 0.6042 GB Notification: Performance of Templates: time 0.001917/0.2288, allocations: 0.6952 MB / 0.9077 GB, free: 56.59 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.makefile (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 & ./Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1)