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.001576/0.001576, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001977/0.001977, allocations: 191.5 kB / 16.13 MB, free: 6.707 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.468/1.468, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.922/2.922, allocations: 472.6 MB / 0.7447 GB, free: 4.988 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 65.92 kB / 0.9114 GB, free: 33.6 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3762/0.3775, allocations: 159.9 MB / 1.068 GB, free: 10.94 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.002973/0.3806, allocations: 1.569 MB / 1.069 GB, free: 9.359 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0006927/0.3813, allocations: 422.9 kB / 1.069 GB, free: 8.941 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.347e-05/0.3813, allocations: 0 / 1.069 GB, free: 8.941 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.62e-05/0.3814, allocations: 3.938 kB / 1.069 GB, free: 8.938 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.593e-05/0.3815, allocations: 11.92 kB / 1.069 GB, free: 8.926 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002109/0.3817, allocations: 11.98 kB / 1.069 GB, free: 8.914 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 9.975e-05/0.3818, allocations: 51.72 kB / 1.07 GB, free: 8.863 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001297/0.3819, allocations: 19.98 kB / 1.07 GB, free: 8.844 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001083/0.3821, allocations: 23.91 kB / 1.07 GB, free: 8.82 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 9.201e-05/0.3822, allocations: 19.92 kB / 1.07 GB, free: 8.801 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.575e-05/0.3822, allocations: 4 kB / 1.07 GB, free: 8.797 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.39e-05/0.3822, allocations: 0 / 1.07 GB, free: 8.797 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.445e-05/0.3822, allocations: 11.92 kB / 1.07 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.117e-05/0.3823, allocations: 19.88 kB / 1.07 GB, free: 8.766 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001102/0.3824, allocations: 48.08 kB / 1.07 GB, free: 8.719 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.3824, allocations: 0 / 1.07 GB, free: 8.719 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.324e-06/0.3824, allocations: 3.938 kB / 1.07 GB, free: 8.715 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.621e-06/0.3824, allocations: 3.938 kB / 1.07 GB, free: 8.711 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.0005718/0.383, allocations: 359.3 kB / 1.07 GB, free: 8.312 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.3831, allocations: 8.031 kB / 1.07 GB, free: 8.305 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.072e-05/0.3831, allocations: 8.844 kB / 1.07 GB, free: 8.297 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001518/0.3833, allocations: 180.2 kB / 1.07 GB, free: 8.082 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.216e-05/0.3833, allocations: 384 / 1.07 GB, free: 8.082 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.481e-05/0.3833, allocations: 8.375 kB / 1.07 GB, free: 8.074 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001851/0.3835, allocations: 57.98 kB / 1.07 GB, free: 8.012 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.3835, allocations: 4 kB / 1.07 GB, free: 8.008 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.202e-05/0.3835, allocations: 0 / 1.07 GB, free: 8.008 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.3835, allocations: 0 / 1.07 GB, free: 8.008 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00013/0.3837, allocations: 35.97 kB / 1.07 GB, free: 7.973 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004515/0.3841, allocations: 276.8 kB / 1.071 GB, free: 7.652 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001297/0.3843, allocations: 38.56 kB / 1.071 GB, free: 7.605 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.763e-05/0.3844, allocations: 24.94 kB / 1.071 GB, free: 7.578 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.718e-05/0.3844, allocations: 0 / 1.071 GB, free: 7.578 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.319e-05/0.3844, allocations: 30.56 kB / 1.071 GB, free: 7.539 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 8.41e-07/0.3844, allocations: 4 kB / 1.071 GB, free: 7.535 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0003297/0.3847, allocations: 97.48 kB / 1.071 GB, free: 7.434 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.206e-05/0.3848, allocations: 51.41 kB / 1.071 GB, free: 7.371 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.257e-05/0.3849, allocations: 117.8 kB / 1.071 GB, free: 7.246 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.3849, allocations: 25.7 kB / 1.071 GB, free: 7.215 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.54e-05/0.385, allocations: 88.14 kB / 1.071 GB, free: 7.125 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.087e-05/0.385, allocations: 11.89 kB / 1.071 GB, free: 7.113 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.469e-05/0.385, allocations: 13.72 kB / 1.071 GB, free: 7.094 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001232/0.3852, allocations: 318.8 kB / 1.071 GB, free: 6.773 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.174e-05/0.3852, allocations: 23.98 kB / 1.071 GB, free: 6.75 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.587e-05/0.3853, allocations: 11.98 kB / 1.071 GB, free: 6.738 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001218/0.3854, allocations: 45.05 kB / 1.071 GB, free: 6.691 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.3854, allocations: 0 / 1.071 GB, free: 6.691 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001747/0.3856, allocations: 81.55 kB / 1.072 GB, free: 6.605 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.3856, allocations: 4 kB / 1.072 GB, free: 6.602 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.3856, allocations: 4 kB / 1.072 GB, free: 6.598 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.23e-05/0.3857, allocations: 0 / 1.072 GB, free: 6.598 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001091/0.3858, allocations: 11.98 kB / 1.072 GB, free: 6.586 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.3858, allocations: 0 / 1.072 GB, free: 6.586 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.359e-05/0.3858, allocations: 4 kB / 1.072 GB, free: 6.582 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.726e-06/0.3859, allocations: 3.938 kB / 1.072 GB, free: 6.578 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 8.357e-05/0.386, allocations: 117.8 kB / 1.072 GB, free: 6.453 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.724e-05/0.386, allocations: 7.891 kB / 1.072 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.477e-05/0.386, allocations: 15.91 kB / 1.072 GB, free: 6.422 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.386, allocations: 3.938 kB / 1.072 GB, free: 6.418 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.9e-06/0.386, allocations: 0 / 1.072 GB, free: 6.418 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.386, allocations: 0 / 1.072 GB, free: 6.418 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001724/0.3862, allocations: 173.6 kB / 1.072 GB, free: 6.199 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.3862, allocations: 0 / 1.072 GB, free: 6.199 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.152e-05/0.3863, allocations: 15.92 kB / 1.072 GB, free: 6.184 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.402e-06/0.3863, allocations: 0 / 1.072 GB, free: 6.184 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.156e-06/0.3863, allocations: 0 / 1.072 GB, free: 6.184 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.3863, allocations: 4 kB / 1.072 GB, free: 6.18 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.3863, allocations: 4 kB / 1.072 GB, free: 6.176 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002126/0.3866, allocations: 167.5 kB / 1.072 GB, free: 5.996 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.986e-05/0.3866, allocations: 88.95 kB / 1.072 GB, free: 5.891 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.55e-05/0.3866, allocations: 0 / 1.072 GB, free: 5.891 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.45e-05/0.3867, allocations: 11.98 kB / 1.072 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.934e-05/0.3868, allocations: 0 / 1.072 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.038e-06/0.3868, allocations: 0 / 1.072 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.123e-05/0.3868, allocations: 99.27 kB / 1.072 GB, free: 5.781 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3868, allocations: 0 / 1.072 GB, free: 5.781 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000213/0.3871, allocations: 8 kB / 1.072 GB, free: 5.773 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.0001213/0.3872, allocations: 103.2 kB / 1.072 GB, free: 5.664 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001758/0.3874, allocations: 39.97 kB / 1.072 GB, free: 5.625 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.3874, allocations: 0 / 1.072 GB, free: 5.625 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 6.789e-05/0.3875, allocations: 23.98 kB / 1.072 GB, free: 5.602 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002139/0.3877, allocations: 4.5 kB / 1.072 GB, free: 5.598 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000411/0.3881, allocations: 174.5 kB / 1.073 GB, free: 5.398 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002836/0.3884, allocations: 0.6848 MB / 1.073 GB, free: 4.688 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.199e-05/0.3884, allocations: 3.984 kB / 1.073 GB, free: 4.684 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.025e-05/0.3885, allocations: 7.438 kB / 1.073 GB, free: 4.676 MB / 0.8262 GB Notification: Performance of SimCode: time 3.8e-07/0.3885, allocations: 4 kB / 1.073 GB, free: 4.672 MB / 0.8262 GB Notification: Performance of Templates: time 0.002605/0.3911, allocations: 407.2 kB / 1.074 GB, free: 4.277 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)