Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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: "" <> buildModelFMU(IBPSA.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001687/0.001687, allocations: 107.6 kB / 15.99 MB, free: 6.348 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.001872/0.001872, allocations: 199.9 kB / 16.91 MB, free: 6.188 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.393/1.393, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8017/0.8017, allocations: 126.7 MB / 417.4 MB, free: 12.52 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001909/0.001909, allocations: 71.89 kB / 0.4954 GB, free: 3.078 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2716/0.2735, allocations: 78.86 MB / 0.5724 GB, free: 30.93 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.00202/0.2755, allocations: 1.565 MB / 0.5739 GB, free: 29.84 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004403/0.276, allocations: 410 kB / 0.5743 GB, free: 29.57 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.915e-05/0.276, allocations: 1.906 kB / 0.5743 GB, free: 29.57 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 2.606e-05/0.2761, allocations: 4.781 kB / 0.5743 GB, free: 29.56 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.778e-05/0.2761, allocations: 7.906 kB / 0.5743 GB, free: 29.56 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001266/0.2762, allocations: 15.73 kB / 0.5743 GB, free: 29.55 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 6.361e-05/0.2763, allocations: 53.67 kB / 0.5744 GB, free: 29.52 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.474e-05/0.2764, allocations: 8.906 kB / 0.5744 GB, free: 29.52 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.273e-05/0.2765, allocations: 20.33 kB / 0.5744 GB, free: 29.52 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.928e-05/0.2765, allocations: 29.64 kB / 0.5744 GB, free: 29.5 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.335e-05/0.2766, allocations: 4.125 kB / 0.5744 GB, free: 29.5 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.037e-05/0.2766, allocations: 4.344 kB / 0.5744 GB, free: 29.5 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.454e-05/0.2766, allocations: 7.406 kB / 0.5744 GB, free: 29.5 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 3.099e-05/0.2766, allocations: 23.73 kB / 0.5745 GB, free: 29.48 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 7.344e-05/0.2767, allocations: 46.45 kB / 0.5745 GB, free: 29.46 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.2767, allocations: 4.031 kB / 0.5745 GB, free: 29.46 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2767, allocations: 4.547 kB / 0.5745 GB, free: 29.46 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.557e-06/0.2767, allocations: 0 / 0.5745 GB, free: 29.46 MB / 446.1 MB 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.0003481/0.2771, allocations: 365.6 kB / 0.5749 GB, free: 29.08 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.128e-05/0.2771, allocations: 13.42 kB / 0.5749 GB, free: 29.08 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.993e-05/0.2771, allocations: 32.25 kB / 0.5749 GB, free: 29.04 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.15e-05/0.2772, allocations: 8.312 kB / 0.5749 GB, free: 29.04 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.373e-05/0.2772, allocations: 168.3 kB / 0.5751 GB, free: 28.84 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.613e-06/0.2773, allocations: 2.312 kB / 0.5751 GB, free: 28.84 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.14e-05/0.2773, allocations: 6.562 kB / 0.5751 GB, free: 28.84 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000131/0.2774, allocations: 54.62 kB / 0.5751 GB, free: 28.8 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.001e-06/0.2774, allocations: 0 / 0.5751 GB, free: 28.8 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.373e-06/0.2774, allocations: 1.281 kB / 0.5751 GB, free: 28.8 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.286e-06/0.2774, allocations: 4.469 kB / 0.5752 GB, free: 28.79 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001139/0.2776, allocations: 40.52 kB / 0.5752 GB, free: 28.78 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002622/0.2778, allocations: 276.6 kB / 0.5755 GB, free: 28.5 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.415e-05/0.2779, allocations: 39.59 kB / 0.5755 GB, free: 28.47 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.114e-05/0.278, allocations: 24.08 kB / 0.5755 GB, free: 28.46 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.515e-05/0.278, allocations: 1.375 kB / 0.5755 GB, free: 28.46 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.517e-06/0.278, allocations: 32.28 kB / 0.5755 GB, free: 28.42 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 9.42e-07/0.278, allocations: 3.938 kB / 0.5755 GB, free: 28.41 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.0002554/0.2783, allocations: 92.42 kB / 0.5756 GB, free: 28.37 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.594e-05/0.2783, allocations: 52.06 kB / 0.5757 GB, free: 28.3 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.988e-05/0.2784, allocations: 121.7 kB / 0.5758 GB, free: 28.2 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 7.424e-06/0.2784, allocations: 27.56 kB / 0.5758 GB, free: 28.17 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.356e-05/0.2784, allocations: 91.97 kB / 0.5759 GB, free: 28.08 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.596e-05/0.2784, allocations: 22.97 kB / 0.5759 GB, free: 28.06 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.735e-05/0.2785, allocations: 14.69 kB / 0.576 GB, free: 28.04 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.407e-05/0.2785, allocations: 323.1 kB / 0.5763 GB, free: 27.72 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.014e-05/0.2786, allocations: 14.52 kB / 0.5763 GB, free: 27.72 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.031e-05/0.2786, allocations: 18.52 kB / 0.5763 GB, free: 27.72 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001049/0.2787, allocations: 44.42 kB / 0.5763 GB, free: 27.7 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.173e-06/0.2788, allocations: 0.9688 kB / 0.5763 GB, free: 27.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001385/0.2789, allocations: 74.47 kB / 0.5764 GB, free: 27.66 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.066e-05/0.2789, allocations: 6.641 kB / 0.5764 GB, free: 27.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.895e-06/0.2789, allocations: 0 / 0.5764 GB, free: 27.66 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.228e-06/0.2789, allocations: 0 / 0.5764 GB, free: 27.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.427e-05/0.279, allocations: 10.25 kB / 0.5764 GB, free: 27.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.659e-06/0.279, allocations: 2.953 kB / 0.5764 GB, free: 27.66 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.614e-05/0.2791, allocations: 4.234 kB / 0.5764 GB, free: 27.66 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.085e-06/0.2791, allocations: 6.672 kB / 0.5764 GB, free: 27.65 MB / 446.1 MB 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.003e-05/0.2791, allocations: 113.8 kB / 0.5765 GB, free: 27.54 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.308e-05/0.2792, allocations: 7 kB / 0.5766 GB, free: 27.53 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.939e-05/0.2792, allocations: 12.34 kB / 0.5766 GB, free: 27.52 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.2792, allocations: 0 / 0.5766 GB, free: 27.52 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.2792, allocations: 9.438 kB / 0.5766 GB, free: 27.51 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.245e-06/0.2792, allocations: 0.7031 kB / 0.5766 GB, free: 27.51 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001079/0.2793, allocations: 172.7 kB / 0.5767 GB, free: 27.31 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.2793, allocations: 1.672 kB / 0.5767 GB, free: 27.31 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.363e-05/0.2794, allocations: 9.375 kB / 0.5767 GB, free: 27.31 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.373e-06/0.2794, allocations: 1.062 kB / 0.5767 GB, free: 27.31 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.774e-06/0.2794, allocations: 1.953 kB / 0.5768 GB, free: 27.31 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.2794, allocations: 1.031 kB / 0.5768 GB, free: 27.31 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.2794, allocations: 0.7969 kB / 0.5768 GB, free: 27.31 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001497/0.2796, allocations: 171.7 kB / 0.5769 GB, free: 27.16 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.491e-05/0.2796, allocations: 83.17 kB / 0.577 GB, free: 27.07 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.267e-05/0.2796, allocations: 1.375 kB / 0.577 GB, free: 27.07 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.548e-05/0.2797, allocations: 5.328 kB / 0.577 GB, free: 27.07 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.188e-05/0.2797, allocations: 7.781 kB / 0.577 GB, free: 27.06 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.558e-06/0.2798, allocations: 2.031 kB / 0.577 GB, free: 27.06 MB / 446.1 MB Notification: Performance of sorting global known variables: time 3.014e-05/0.2798, allocations: 99.58 kB / 0.5771 GB, free: 26.98 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2798, allocations: 5.312 kB / 0.5771 GB, free: 26.97 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0001989/0.28, allocations: 7.531 kB / 0.5771 GB, free: 26.97 MB / 446.1 MB 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.0002755/0.2803, allocations: 0.7003 MB / 0.5778 GB, free: 26.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001486/0.2804, allocations: 41.3 kB / 0.5778 GB, free: 26.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.2804, allocations: 3.938 kB / 0.5778 GB, free: 26.29 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 5.954e-05/0.2805, allocations: 20.44 kB / 0.5779 GB, free: 26.29 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001849/0.2807, allocations: 5.375 kB / 0.5779 GB, free: 26.29 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003752/0.2811, allocations: 208.7 kB / 0.5781 GB, free: 26.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.168e-05/0.2812, allocations: 0.6849 MB / 0.5787 GB, free: 25.41 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 2.845e-05/0.2812, allocations: 7.812 kB / 0.5787 GB, free: 25.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.441e-05/0.2812, allocations: 18.78 kB / 0.5788 GB, free: 25.39 MB / 446.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2812, allocations: 0 / 0.5788 GB, free: 25.39 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.236/1.517, allocations: 1.366 MB / 0.5801 GB, free: 25.05 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000211/1.517, allocations: 216.1 kB / 0.5803 GB, free: 24.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.151/3.668, allocations: 2.562 kB / 0.5803 GB, free: 24.8 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.fmu > IBPSA_latest_IBPSA.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1)