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: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.645/1.645, allocations: 252 MB / 267 MB, free: 10.95 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.001086/0.001086, allocations: 179.4 kB / 326.6 MB, free: 2.219 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.178/2.178, allocations: 205.4 MB / 0.5777 GB, free: 20.54 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.001046/0.001046, allocations: 81.7 kB / 0.6822 GB, free: 13.34 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003816/0.0003817, allocations: 11.59 kB / 0.7965 GB, free: 134.9 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2898/0.2902, allocations: 106.3 MB / 0.9003 GB, free: 64.19 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.001779/0.292, allocations: 1.223 MB / 0.9015 GB, free: 62.95 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.000677/0.2927, allocations: 431.9 kB / 0.9019 GB, free: 62.52 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.914e-05/0.2928, allocations: 0 / 0.9019 GB, free: 62.52 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.392e-05/0.2929, allocations: 3.938 kB / 0.9019 GB, free: 62.52 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 7.213e-05/0.2929, allocations: 15.91 kB / 0.9019 GB, free: 62.5 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001765/0.2931, allocations: 15.92 kB / 0.902 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 8.732e-05/0.2932, allocations: 47.8 kB / 0.902 GB, free: 62.44 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.413e-05/0.2933, allocations: 4 kB / 0.902 GB, free: 62.43 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001132/0.2934, allocations: 19.92 kB / 0.902 GB, free: 62.41 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 8.352e-05/0.2935, allocations: 23.91 kB / 0.902 GB, free: 62.39 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.226e-05/0.2936, allocations: 0 / 0.902 GB, free: 62.39 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.286e-05/0.2936, allocations: 4 kB / 0.9021 GB, free: 62.39 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.55e-05/0.2936, allocations: 3.984 kB / 0.9021 GB, free: 62.38 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.097e-05/0.2937, allocations: 45.58 kB / 0.9021 GB, free: 62.33 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 8.123e-05/0.2937, allocations: 23.95 kB / 0.9021 GB, free: 62.31 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.2937, allocations: 3.938 kB / 0.9021 GB, free: 62.3 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.154e-06/0.2938, allocations: 0 / 0.9021 GB, free: 62.3 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.713e-06/0.2938, allocations: 0 / 0.9021 GB, free: 62.3 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.0005046/0.2943, allocations: 359.5 kB / 0.9025 GB, free: 61.91 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.665e-05/0.2943, allocations: 8.031 kB / 0.9025 GB, free: 61.9 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.737e-05/0.2944, allocations: 38.56 kB / 0.9025 GB, free: 61.85 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.051e-05/0.2944, allocations: 11.86 kB / 0.9025 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001119/0.2945, allocations: 163.1 kB / 0.9027 GB, free: 61.64 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.193e-05/0.2946, allocations: 0 / 0.9027 GB, free: 61.64 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.626e-05/0.2946, allocations: 7.938 kB / 0.9027 GB, free: 61.63 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001825/0.2948, allocations: 57.67 kB / 0.9027 GB, free: 61.57 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.2948, allocations: 0 / 0.9027 GB, free: 61.57 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.047e-06/0.2948, allocations: 0 / 0.9027 GB, free: 61.57 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.139e-06/0.2948, allocations: 4 kB / 0.9027 GB, free: 61.57 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001315/0.2949, allocations: 39.97 kB / 0.9028 GB, free: 61.53 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003652/0.2953, allocations: 276.8 kB / 0.903 GB, free: 61.21 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000129/0.2955, allocations: 58.48 kB / 0.9031 GB, free: 61.14 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.332e-05/0.2955, allocations: 28.94 kB / 0.9031 GB, free: 61.11 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.093e-05/0.2956, allocations: 0 / 0.9031 GB, free: 61.11 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.819e-05/0.2956, allocations: 30.56 kB / 0.9032 GB, free: 61.07 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=3): time 8.41e-07/0.2956, allocations: 4 kB / 0.9032 GB, free: 61.07 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3): time 0.0003388/0.296, allocations: 97.61 kB / 0.9033 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.647e-05/0.296, allocations: 59.34 kB / 0.9033 GB, free: 60.89 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.624e-05/0.2961, allocations: 125.8 kB / 0.9034 GB, free: 60.76 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.046e-05/0.2961, allocations: 25.7 kB / 0.9035 GB, free: 60.73 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.039e-05/0.2961, allocations: 95.98 kB / 0.9036 GB, free: 60.63 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.69e-05/0.2962, allocations: 3.906 kB / 0.9036 GB, free: 60.63 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.948e-06/0.2962, allocations: 0 / 0.9036 GB, free: 60.63 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.758e-05/0.2962, allocations: 322.8 kB / 0.9039 GB, free: 60.3 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.743e-05/0.2963, allocations: 19.98 kB / 0.9039 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.891e-05/0.2964, allocations: 27.92 kB / 0.9039 GB, free: 60.26 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.793e-05/0.2964, allocations: 19.98 kB / 0.9039 GB, free: 60.24 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.2964, allocations: 0 / 0.9039 GB, free: 60.24 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001638/0.2966, allocations: 77.67 kB / 0.904 GB, free: 60.16 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.2966, allocations: 8 kB / 0.904 GB, free: 60.15 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.501e-06/0.2967, allocations: 0 / 0.904 GB, free: 60.15 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/0.2967, allocations: 4.328 kB / 0.904 GB, free: 60.14 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001086/0.2968, allocations: 15.92 kB / 0.904 GB, free: 60.13 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.054e-06/0.2968, allocations: 3.953 kB / 0.904 GB, free: 60.12 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.645e-05/0.2969, allocations: 7.906 kB / 0.904 GB, free: 60.12 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.103e-05/0.2969, allocations: 15.92 kB / 0.9041 GB, free: 60.1 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.925e-05/0.297, allocations: 109.8 kB / 0.9042 GB, free: 59.98 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.793e-05/0.297, allocations: 4 kB / 0.9042 GB, free: 59.98 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.827e-05/0.297, allocations: 11.89 kB / 0.9042 GB, free: 59.96 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.297, allocations: 0 / 0.9042 GB, free: 59.96 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.297, allocations: 0 / 0.9042 GB, free: 59.96 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.297, allocations: 7.953 kB / 0.9042 GB, free: 59.96 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001322/0.2972, allocations: 169.6 kB / 0.9043 GB, free: 59.74 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.2972, allocations: 0 / 0.9043 GB, free: 59.74 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.032e-05/0.2973, allocations: 8 kB / 0.9044 GB, free: 59.73 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.075e-06/0.2973, allocations: 4 kB / 0.9044 GB, free: 59.73 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.277e-06/0.2973, allocations: 3.984 kB / 0.9044 GB, free: 59.73 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.2973, allocations: 0 / 0.9044 GB, free: 59.73 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.2973, allocations: 4 kB / 0.9044 GB, free: 59.72 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001981/0.2975, allocations: 183.3 kB / 0.9045 GB, free: 59.53 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.61e-05/0.2976, allocations: 85 kB / 0.9046 GB, free: 59.43 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.489e-05/0.2976, allocations: 4 kB / 0.9046 GB, free: 59.42 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.037e-05/0.2977, allocations: 4 kB / 0.9046 GB, free: 59.42 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.163e-05/0.2977, allocations: 3.984 kB / 0.9046 GB, free: 59.41 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.24e-06/0.2977, allocations: 4 kB / 0.9046 GB, free: 59.41 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.491e-05/0.2978, allocations: 91.27 kB / 0.9047 GB, free: 59.32 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1e-07/0.2978, allocations: 0 / 0.9047 GB, free: 59.32 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002004/0.298, allocations: 8 kB / 0.9047 GB, free: 59.31 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000401/0.2984, allocations: 0.7124 MB / 0.9054 GB, free: 58.57 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0001766/0.2986, allocations: 51.91 kB / 0.9055 GB, free: 58.52 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.2986, allocations: 0 / 0.9055 GB, free: 58.52 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 6.642e-05/0.2987, allocations: 27.98 kB / 0.9055 GB, free: 58.5 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001999/0.2989, allocations: 4 kB / 0.9055 GB, free: 58.49 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000475/0.2993, allocations: 224 kB / 0.9057 GB, free: 58.23 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001387/0.2995, allocations: 0.6809 MB / 0.9064 GB, free: 57.53 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 3.746e-05/0.2995, allocations: 4 kB / 0.9064 GB, free: 57.52 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.524e-05/0.2996, allocations: 19.42 kB / 0.9064 GB, free: 57.5 MB / 0.6042 GB Notification: Performance of SimCode: time 4.11e-07/0.2996, allocations: 0 / 0.9064 GB, free: 57.5 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01352/0.3131, allocations: 1.243 MB / 0.9076 GB, free: 56.45 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001724/0.3133, allocations: 220.4 kB / 0.9078 GB, free: 56.21 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.7/2.013, allocations: 4.062 kB / 0.9078 GB, free: 56.2 MB / 0.6042 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.fmu > Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1)