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.517/1.517, allocations: 251.5 MB / 266.7 MB, free: 11.04 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: 178.1 kB / 325.8 MB, free: 2.68 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.86/1.86, allocations: 205 MB / 0.576 GB, free: 20.98 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.0009876/0.0009875, allocations: 96.41 kB / 0.6797 GB, free: 14.68 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0005561/0.0005563, allocations: 8.438 kB / 0.7933 GB, free: 136.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2687/0.2693, allocations: 105.4 MB / 0.8962 GB, free: 68.04 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.001519/0.2709, allocations: 1.247 MB / 0.8974 GB, free: 66.78 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0005562/0.2715, allocations: 460.3 kB / 0.8979 GB, free: 66.32 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.508e-05/0.2715, allocations: 4 kB / 0.8979 GB, free: 66.32 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 3.537e-05/0.2715, allocations: 3.984 kB / 0.8979 GB, free: 66.31 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 5.409e-05/0.2716, allocations: 15.86 kB / 0.8979 GB, free: 66.3 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001471/0.2718, allocations: 11.98 kB / 0.8979 GB, free: 66.29 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 6.422e-05/0.2718, allocations: 47.8 kB / 0.8979 GB, free: 66.24 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.418e-05/0.2719, allocations: 11.98 kB / 0.898 GB, free: 66.23 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 8.392e-05/0.272, allocations: 19.86 kB / 0.898 GB, free: 66.21 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 6.733e-05/0.2721, allocations: 23.91 kB / 0.898 GB, free: 66.18 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.559e-05/0.2721, allocations: 8 kB / 0.898 GB, free: 66.18 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.064e-05/0.2721, allocations: 0 / 0.898 GB, free: 66.18 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.464e-05/0.2722, allocations: 3.938 kB / 0.898 GB, free: 66.17 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.976e-05/0.2722, allocations: 19.92 kB / 0.898 GB, free: 66.15 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 6.72e-05/0.2723, allocations: 39.81 kB / 0.8981 GB, free: 66.11 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.2723, allocations: 7.938 kB / 0.8981 GB, free: 66.11 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.693e-06/0.2723, allocations: 0 / 0.8981 GB, free: 66.11 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 3.918e-06/0.2723, allocations: 0 / 0.8981 GB, free: 66.11 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.0004235/0.2727, allocations: 355.4 kB / 0.8984 GB, free: 65.71 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.684e-05/0.2728, allocations: 8.031 kB / 0.8984 GB, free: 65.7 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.662e-05/0.2728, allocations: 38.75 kB / 0.8985 GB, free: 65.66 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.203e-05/0.2728, allocations: 4.844 kB / 0.8985 GB, free: 65.65 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.108e-05/0.2729, allocations: 176.2 kB / 0.8986 GB, free: 65.44 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.068e-05/0.2729, allocations: 4.375 kB / 0.8986 GB, free: 65.44 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.013e-05/0.2729, allocations: 384 / 0.8986 GB, free: 65.44 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001483/0.2731, allocations: 65.73 kB / 0.8987 GB, free: 65.37 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.815e-06/0.2731, allocations: 4 kB / 0.8987 GB, free: 65.36 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.374e-06/0.2731, allocations: 0 / 0.8987 GB, free: 65.36 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.2731, allocations: 7.984 kB / 0.8987 GB, free: 65.36 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001161/0.2733, allocations: 35.98 kB / 0.8987 GB, free: 65.32 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002912/0.2736, allocations: 276.9 kB / 0.899 GB, free: 65 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001034/0.2737, allocations: 54.48 kB / 0.8991 GB, free: 64.94 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.476e-05/0.2737, allocations: 24.94 kB / 0.8991 GB, free: 64.91 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.468e-05/0.2738, allocations: 3.938 kB / 0.8991 GB, free: 64.91 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.497e-05/0.2738, allocations: 38.56 kB / 0.8991 GB, free: 64.86 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=3): time 1.953e-06/0.2738, allocations: 3.984 kB / 0.8991 GB, free: 64.86 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3): time 0.0002691/0.2741, allocations: 97.56 kB / 0.8992 GB, free: 64.75 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.028e-05/0.2741, allocations: 55.41 kB / 0.8993 GB, free: 64.69 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.225e-05/0.2742, allocations: 125.8 kB / 0.8994 GB, free: 64.55 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 7.765e-06/0.2742, allocations: 25.7 kB / 0.8994 GB, free: 64.52 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 2.633e-05/0.2742, allocations: 88.14 kB / 0.8995 GB, free: 64.43 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.358e-05/0.2742, allocations: 7.844 kB / 0.8995 GB, free: 64.43 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.989e-05/0.2743, allocations: 13.72 kB / 0.8995 GB, free: 64.41 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.366e-05/0.2743, allocations: 322.8 kB / 0.8998 GB, free: 64.08 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.967e-05/0.2744, allocations: 23.98 kB / 0.8999 GB, free: 64.06 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.009e-05/0.2744, allocations: 19.98 kB / 0.8999 GB, free: 64.04 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001089/0.2745, allocations: 48.83 kB / 0.8999 GB, free: 63.99 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.2746, allocations: 4 kB / 0.8999 GB, free: 63.98 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001402/0.2747, allocations: 77.58 kB / 0.9 GB, free: 63.9 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.07e-05/0.2747, allocations: 4 kB / 0.9 GB, free: 63.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.2747, allocations: 0 / 0.9 GB, free: 63.9 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.229e-05/0.2747, allocations: 3.938 kB / 0.9 GB, free: 63.89 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.079e-05/0.2748, allocations: 11.98 kB / 0.9 GB, free: 63.88 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.997e-06/0.2749, allocations: 8 kB / 0.9 GB, free: 63.88 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.908e-05/0.2749, allocations: 15.98 kB / 0.9 GB, free: 63.86 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.143e-06/0.2749, allocations: 0 / 0.9 GB, free: 63.86 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 4.715e-05/0.275, allocations: 113.8 kB / 0.9001 GB, free: 63.74 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.364e-05/0.275, allocations: 7.844 kB / 0.9002 GB, free: 63.73 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.193e-05/0.275, allocations: 11.91 kB / 0.9002 GB, free: 63.71 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-06/0.275, allocations: 0 / 0.9002 GB, free: 63.71 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-06/0.275, allocations: 0 / 0.9002 GB, free: 63.71 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.275, allocations: 4 kB / 0.9002 GB, free: 63.71 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001119/0.2752, allocations: 177.6 kB / 0.9003 GB, free: 63.49 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.2752, allocations: 0 / 0.9003 GB, free: 63.49 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.276e-05/0.2752, allocations: 12 kB / 0.9004 GB, free: 63.48 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.2753, allocations: 3.984 kB / 0.9004 GB, free: 63.47 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.254e-06/0.2753, allocations: 3.938 kB / 0.9004 GB, free: 63.47 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.81e-07/0.2753, allocations: 0 / 0.9004 GB, free: 63.47 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.2753, allocations: 0 / 0.9004 GB, free: 63.47 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001652/0.2754, allocations: 183.4 kB / 0.9005 GB, free: 63.27 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 1.949e-05/0.2755, allocations: 85 kB / 0.9006 GB, free: 63.17 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.256e-05/0.2755, allocations: 0 / 0.9006 GB, free: 63.17 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.655e-05/0.2756, allocations: 8 kB / 0.9006 GB, free: 63.16 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.08e-05/0.2756, allocations: 7.984 kB / 0.9006 GB, free: 63.16 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.386e-06/0.2756, allocations: 0 / 0.9006 GB, free: 63.16 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.909e-05/0.2757, allocations: 95.27 kB / 0.9007 GB, free: 63.06 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1e-07/0.2757, allocations: 0 / 0.9007 GB, free: 63.06 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0001964/0.2759, allocations: 4 kB / 0.9007 GB, free: 63.06 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.0003225/0.2762, allocations: 0.7166 MB / 0.9014 GB, free: 62.32 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0001536/0.2764, allocations: 52 kB / 0.9015 GB, free: 62.27 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.2764, allocations: 4 kB / 0.9015 GB, free: 62.26 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 8.834e-05/0.2765, allocations: 23.98 kB / 0.9015 GB, free: 62.24 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001941/0.2767, allocations: 4 kB / 0.9015 GB, free: 62.23 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000414/0.2771, allocations: 207.6 kB / 0.9017 GB, free: 61.99 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001067/0.2772, allocations: 0.6809 MB / 0.9024 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 3.029e-05/0.2772, allocations: 0 / 0.9024 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.688e-05/0.2773, allocations: 23.42 kB / 0.9024 GB, free: 61.26 MB / 0.6042 GB Notification: Performance of SimCode: time 1.052e-06/0.2773, allocations: 0 / 0.9024 GB, free: 61.26 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09487/0.3722, allocations: 1.259 MB / 0.9036 GB, free: 60.18 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001797/0.3724, allocations: 236.9 kB / 0.9038 GB, free: 59.93 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.55/1.923, allocations: 0 / 0.9038 GB, free: 59.93 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)