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/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.963/1.963, allocations: 292.3 MB / 308.1 MB, free: 4.312 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001546/0.001545, allocations: 200.1 kB / 376.9 MB, free: 1.824 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.639/1.639, allocations: 205.1 MB / 0.6354 GB, free: 9.785 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001054/0.001054, allocations: 98.31 kB / 0.748 GB, free: 61.27 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.00108/0.00108, allocations: 51.92 kB / 0.8704 GB, free: 13.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2964/0.2975, allocations: 114.5 MB / 0.9822 GB, free: 10.41 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.003227/0.3007, allocations: 1.573 MB / 0.9838 GB, free: 8.812 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.0007738/0.3015, allocations: 467.8 kB / 0.9842 GB, free: 8.348 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.234e-05/0.3016, allocations: 0 / 0.9842 GB, free: 8.348 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 3.986e-05/0.3016, allocations: 0 / 0.9842 GB, free: 8.348 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 7.193e-05/0.3017, allocations: 11.86 kB / 0.9842 GB, free: 8.336 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001854/0.3019, allocations: 11.98 kB / 0.9842 GB, free: 8.324 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0001029/0.302, allocations: 51.73 kB / 0.9843 GB, free: 8.273 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001315/0.3022, allocations: 11.98 kB / 0.9843 GB, free: 8.262 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000101/0.3023, allocations: 19.92 kB / 0.9843 GB, free: 8.242 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 9.761e-05/0.3024, allocations: 27.91 kB / 0.9843 GB, free: 8.215 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 1.897e-05/0.3024, allocations: 0 / 0.9843 GB, free: 8.215 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 1.633e-05/0.3024, allocations: 4 kB / 0.9843 GB, free: 8.211 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 2.563e-05/0.3025, allocations: 7.938 kB / 0.9843 GB, free: 8.203 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 4.238e-05/0.3025, allocations: 19.92 kB / 0.9844 GB, free: 8.184 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0001148/0.3026, allocations: 48.03 kB / 0.9844 GB, free: 8.137 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 6.994e-06/0.3026, allocations: 0 / 0.9844 GB, free: 8.137 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.382e-06/0.3027, allocations: 0 / 0.9844 GB, free: 8.137 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 5.57e-06/0.3027, allocations: 0 / 0.9844 GB, free: 8.137 MB / 0.7136 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.0005903/0.3033, allocations: 371.3 kB / 0.9848 GB, free: 7.727 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.541e-05/0.3033, allocations: 8.031 kB / 0.9848 GB, free: 7.719 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.889e-05/0.3034, allocations: 8.844 kB / 0.9848 GB, free: 7.711 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001391/0.3035, allocations: 172.2 kB / 0.9849 GB, free: 7.504 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.297e-05/0.3035, allocations: 4.375 kB / 0.985 GB, free: 7.5 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.245e-05/0.3035, allocations: 384 / 0.985 GB, free: 7.5 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001837/0.3037, allocations: 61.98 kB / 0.985 GB, free: 7.434 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.361e-05/0.3037, allocations: 3.984 kB / 0.985 GB, free: 7.43 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.187e-06/0.3038, allocations: 0 / 0.985 GB, free: 7.43 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.3038, allocations: 4 kB / 0.985 GB, free: 7.426 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000125/0.3039, allocations: 27.98 kB / 0.985 GB, free: 7.398 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004733/0.3044, allocations: 276.9 kB / 0.9853 GB, free: 7.078 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001225/0.3045, allocations: 46.5 kB / 0.9854 GB, free: 7.023 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.496e-05/0.3046, allocations: 28.94 kB / 0.9854 GB, free: 6.992 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.101e-05/0.3046, allocations: 0 / 0.9854 GB, free: 6.992 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.628e-05/0.3047, allocations: 34.5 kB / 0.9854 GB, free: 6.949 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=3): time 9.32e-07/0.3047, allocations: 0 / 0.9854 GB, free: 6.949 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3): time 0.000333/0.305, allocations: 93.5 kB / 0.9855 GB, free: 6.852 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.598e-05/0.3051, allocations: 55.41 kB / 0.9856 GB, free: 6.785 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00011/0.3052, allocations: 121.8 kB / 0.9857 GB, free: 6.656 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.544e-05/0.3052, allocations: 29.7 kB / 0.9857 GB, free: 6.621 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.086e-05/0.3053, allocations: 88.08 kB / 0.9858 GB, free: 6.531 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.345e-05/0.3053, allocations: 11.81 kB / 0.9858 GB, free: 6.52 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.68e-05/0.3053, allocations: 17.7 kB / 0.9858 GB, free: 6.496 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001203/0.3054, allocations: 318.8 kB / 0.9861 GB, free: 6.176 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.793e-05/0.3055, allocations: 15.98 kB / 0.9861 GB, free: 6.16 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.613e-05/0.3056, allocations: 23.98 kB / 0.9862 GB, free: 6.137 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001223/0.3057, allocations: 40.83 kB / 0.9862 GB, free: 6.094 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.542e-06/0.3057, allocations: 0 / 0.9862 GB, free: 6.094 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001574/0.3059, allocations: 69.92 kB / 0.9863 GB, free: 6.02 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.3059, allocations: 7.984 kB / 0.9863 GB, free: 6.012 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.149e-06/0.3059, allocations: 4 kB / 0.9863 GB, free: 6.008 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.3059, allocations: 4 kB / 0.9863 GB, free: 6.004 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.83e-05/0.306, allocations: 8 kB / 0.9863 GB, free: 5.996 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.095e-06/0.3061, allocations: 4 kB / 0.9863 GB, free: 5.992 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.717e-05/0.3061, allocations: 3.984 kB / 0.9863 GB, free: 5.988 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.091e-05/0.3061, allocations: 4 kB / 0.9863 GB, free: 5.984 MB / 0.7136 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.562e-05/0.3062, allocations: 109.8 kB / 0.9864 GB, free: 5.867 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.754e-05/0.3062, allocations: 7.906 kB / 0.9864 GB, free: 5.859 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.992e-05/0.3063, allocations: 7.906 kB / 0.9864 GB, free: 5.844 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.125e-06/0.3063, allocations: 3.984 kB / 0.9864 GB, free: 5.84 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.3063, allocations: 8 kB / 0.9864 GB, free: 5.832 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.3063, allocations: 0 / 0.9864 GB, free: 5.832 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001697/0.3065, allocations: 173.5 kB / 0.9866 GB, free: 5.613 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.3065, allocations: 0 / 0.9866 GB, free: 5.613 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.395e-05/0.3066, allocations: 11.98 kB / 0.9866 GB, free: 5.602 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.3066, allocations: 0 / 0.9866 GB, free: 5.602 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.104e-05/0.3066, allocations: 0 / 0.9866 GB, free: 5.602 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.3066, allocations: 3.938 kB / 0.9866 GB, free: 5.598 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3066, allocations: 0 / 0.9866 GB, free: 5.598 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000541/0.3071, allocations: 0.7434 MB / 0.9873 GB, free: 4.797 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.745e-05/0.3072, allocations: 85.02 kB / 0.9874 GB, free: 4.695 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.612e-05/0.3072, allocations: 7.938 kB / 0.9874 GB, free: 4.688 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.674e-05/0.3073, allocations: 4 kB / 0.9874 GB, free: 4.684 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.775e-05/0.3074, allocations: 7.922 kB / 0.9874 GB, free: 4.676 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.747e-06/0.3074, allocations: 4 kB / 0.9874 GB, free: 4.672 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 4.973e-05/0.3074, allocations: 95.27 kB / 0.9875 GB, free: 4.578 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3074, allocations: 0 / 0.9875 GB, free: 4.578 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.000302/0.3077, allocations: 8 kB / 0.9875 GB, free: 4.57 MB / 0.7136 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.0001224/0.3079, allocations: 95.25 kB / 0.9876 GB, free: 4.469 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001975/0.3081, allocations: 39.97 kB / 0.9877 GB, free: 4.43 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.3081, allocations: 4 kB / 0.9877 GB, free: 4.426 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 7.184e-05/0.3082, allocations: 23.92 kB / 0.9877 GB, free: 4.402 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002135/0.3084, allocations: 7.922 kB / 0.9877 GB, free: 4.395 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004572/0.3088, allocations: 273 kB / 0.988 GB, free: 4.09 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002739/0.3091, allocations: 0.6926 MB / 0.9886 GB, free: 3.371 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 3.916e-05/0.3092, allocations: 3.984 kB / 0.9886 GB, free: 3.367 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.19e-05/0.3092, allocations: 7.438 kB / 0.9886 GB, free: 3.359 MB / 0.7136 GB Notification: Performance of SimCode: time 2.4e-07/0.3092, allocations: 0 / 0.9886 GB, free: 3.359 MB / 0.7136 GB Notification: Performance of Templates: time 0.002354/0.3116, allocations: 417.4 kB / 0.989 GB, free: 2.953 MB / 0.7136 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)