Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_1.6_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_1.6_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.001193/0.001193, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.009131/0.009131, allocations: 169.6 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.407/1.407, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.937/2.937, allocations: 473.4 MB / 0.7469 GB, free: 6.074 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003504/0.0003504, allocations: 8.906 kB / 0.9158 GB, free: 33.09 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.381/0.3814, allocations: 162.2 MB / 1.074 GB, free: 7.527 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.00183/0.3833, allocations: 1.236 MB / 1.075 GB, free: 6.281 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.000636/0.3839, allocations: 407.2 kB / 1.076 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.329e-05/0.384, allocations: 0 / 1.076 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.803e-05/0.384, allocations: 0 / 1.076 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.959e-05/0.3841, allocations: 19.84 kB / 1.076 GB, free: 5.859 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001632/0.3842, allocations: 7.984 kB / 1.076 GB, free: 5.852 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 8.831e-05/0.3843, allocations: 55.73 kB / 1.076 GB, free: 5.797 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001093/0.3845, allocations: 11.98 kB / 1.076 GB, free: 5.785 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.652e-05/0.3846, allocations: 23.91 kB / 1.076 GB, free: 5.762 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.137e-05/0.3847, allocations: 19.92 kB / 1.076 GB, free: 5.742 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.816e-05/0.3847, allocations: 0 / 1.076 GB, free: 5.742 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.334e-05/0.3847, allocations: 4 kB / 1.076 GB, free: 5.738 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.043e-05/0.3847, allocations: 7.922 kB / 1.076 GB, free: 5.73 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.77e-05/0.3848, allocations: 45.58 kB / 1.076 GB, free: 5.68 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 9.941e-05/0.3849, allocations: 40.08 kB / 1.076 GB, free: 5.641 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.3849, allocations: 0 / 1.076 GB, free: 5.641 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.174e-06/0.3849, allocations: 4 kB / 1.076 GB, free: 5.637 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.608e-06/0.3849, allocations: 4 kB / 1.076 GB, free: 5.633 MB / 0.8262 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.0004602/0.3854, allocations: 355.3 kB / 1.076 GB, free: 5.238 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.3854, allocations: 8.031 kB / 1.076 GB, free: 5.23 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.328e-05/0.3855, allocations: 8.922 kB / 1.076 GB, free: 5.223 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00015/0.3856, allocations: 176.2 kB / 1.076 GB, free: 5.012 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.556e-05/0.3857, allocations: 12.31 kB / 1.077 GB, free: 5 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.543e-05/0.3857, allocations: 4.375 kB / 1.077 GB, free: 4.996 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000191/0.3859, allocations: 61.98 kB / 1.077 GB, free: 4.93 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.742e-06/0.3859, allocations: 0 / 1.077 GB, free: 4.93 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.888e-06/0.3859, allocations: 0 / 1.077 GB, free: 4.93 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.3859, allocations: 0 / 1.077 GB, free: 4.93 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001461/0.3861, allocations: 51.95 kB / 1.077 GB, free: 4.879 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004006/0.3865, allocations: 276.8 kB / 1.077 GB, free: 4.559 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001245/0.3866, allocations: 42.5 kB / 1.077 GB, free: 4.508 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.568e-05/0.3867, allocations: 32.94 kB / 1.077 GB, free: 4.473 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.794e-05/0.3867, allocations: 7.938 kB / 1.077 GB, free: 4.465 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.399e-05/0.3868, allocations: 30.56 kB / 1.077 GB, free: 4.426 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.3868, allocations: 0 / 1.077 GB, free: 4.426 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0003528/0.3871, allocations: 105.6 kB / 1.077 GB, free: 4.316 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.726e-05/0.3872, allocations: 51.41 kB / 1.077 GB, free: 4.254 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.802e-05/0.3873, allocations: 121.8 kB / 1.077 GB, free: 4.125 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.652e-05/0.3873, allocations: 25.7 kB / 1.077 GB, free: 4.094 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.774e-05/0.3874, allocations: 92.12 kB / 1.077 GB, free: 4 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.212e-05/0.3874, allocations: 19.8 kB / 1.077 GB, free: 3.98 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.306e-05/0.3874, allocations: 9.719 kB / 1.077 GB, free: 3.965 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001902/0.3876, allocations: 318.8 kB / 1.078 GB, free: 3.645 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.568e-05/0.3877, allocations: 19.98 kB / 1.078 GB, free: 3.625 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.364e-05/0.3878, allocations: 19.98 kB / 1.078 GB, free: 3.605 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001438/0.3879, allocations: 52.83 kB / 1.078 GB, free: 3.551 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.3879, allocations: 0 / 1.078 GB, free: 3.551 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002185/0.3881, allocations: 81.59 kB / 1.078 GB, free: 3.465 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/0.3882, allocations: 12 kB / 1.078 GB, free: 3.453 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.028e-06/0.3882, allocations: 0 / 1.078 GB, free: 3.453 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.016e-05/0.3882, allocations: 0 / 1.078 GB, free: 3.453 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001036/0.3883, allocations: 11.98 kB / 1.078 GB, free: 3.441 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.3883, allocations: 3.938 kB / 1.078 GB, free: 3.438 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.535e-05/0.3884, allocations: 8 kB / 1.078 GB, free: 3.43 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.354e-06/0.3884, allocations: 0 / 1.078 GB, free: 3.43 MB / 0.8262 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.987e-05/0.3885, allocations: 117.8 kB / 1.078 GB, free: 3.305 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.845e-05/0.3885, allocations: 11.89 kB / 1.078 GB, free: 3.293 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.934e-05/0.3885, allocations: 7.906 kB / 1.078 GB, free: 3.277 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.3886, allocations: 4 kB / 1.078 GB, free: 3.273 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.3886, allocations: 0 / 1.078 GB, free: 3.273 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.3886, allocations: 0 / 1.078 GB, free: 3.273 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001652/0.3887, allocations: 169.6 kB / 1.078 GB, free: 3.059 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.3887, allocations: 0 / 1.078 GB, free: 3.059 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.535e-05/0.3888, allocations: 11.98 kB / 1.078 GB, free: 3.047 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.3888, allocations: 0 / 1.078 GB, free: 3.047 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.117e-06/0.3889, allocations: 8 kB / 1.078 GB, free: 3.039 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.3889, allocations: 0 / 1.078 GB, free: 3.039 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.3889, allocations: 0 / 1.078 GB, free: 3.039 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002275/0.3891, allocations: 179.6 kB / 1.078 GB, free: 2.848 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.929e-05/0.3892, allocations: 89.05 kB / 1.078 GB, free: 2.742 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.401e-05/0.3892, allocations: 0 / 1.078 GB, free: 2.742 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.648e-05/0.3893, allocations: 11.98 kB / 1.078 GB, free: 2.73 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.575e-05/0.3893, allocations: 8.031 kB / 1.078 GB, free: 2.723 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.2e-06/0.3893, allocations: 4 kB / 1.078 GB, free: 2.719 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.826e-05/0.3894, allocations: 95.2 kB / 1.079 GB, free: 2.625 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3894, allocations: 0 / 1.079 GB, free: 2.625 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002188/0.3896, allocations: 8 kB / 1.079 GB, free: 2.617 MB / 0.8262 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.0001604/0.3898, allocations: 103.2 kB / 1.079 GB, free: 2.508 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001971/0.39, allocations: 51.91 kB / 1.079 GB, free: 2.457 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.39, allocations: 0 / 1.079 GB, free: 2.457 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.119e-05/0.3901, allocations: 27.98 kB / 1.079 GB, free: 2.43 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002201/0.3903, allocations: 7.938 kB / 1.079 GB, free: 2.422 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003682/0.3907, allocations: 196.3 kB / 1.079 GB, free: 2.203 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002965/0.391, allocations: 0.6848 MB / 1.08 GB, free: 1.492 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.614e-05/0.391, allocations: 4 kB / 1.08 GB, free: 1.488 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.969e-05/0.3911, allocations: 15.42 kB / 1.08 GB, free: 1.473 MB / 0.8262 GB Notification: Performance of SimCode: time 2.51e-07/0.3911, allocations: 0 / 1.08 GB, free: 1.473 MB / 0.8262 GB Notification: Performance of Templates: time 0.002544/0.3936, allocations: 390 kB / 1.08 GB, free: 1.098 MB / 0.8262 GB make -j1 -f Buildings_1.6_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.makefile (rm -f Buildings_1.6_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe >> ../files/Buildings_1.6_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.sim & ./Buildings_1.6_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1)