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.001227/0.001227, allocations: 109.8 kB / 16.41 MB, free: 6.496 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.001219/0.001219, allocations: 189.2 kB / 17.34 MB, free: 5.762 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.354/1.354, allocations: 222.9 MB / 241 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8332/0.8332, allocations: 126.7 MB / 417.9 MB, free: 12.3 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001852/0.001852, allocations: 70.88 kB / 0.5735 GB, free: 27.07 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1434/0.1453, allocations: 78.87 MB / 0.6506 GB, free: 3.605 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.00258/0.1479, allocations: 1.494 MB / 0.652 GB, free: 2.098 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006739/0.1486, allocations: 424.9 kB / 0.6524 GB, free: 1.684 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.787e-05/0.1486, allocations: 0 / 0.6524 GB, free: 1.684 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.044e-05/0.1487, allocations: 3.938 kB / 0.6524 GB, free: 1.68 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.563e-05/0.1487, allocations: 19.84 kB / 0.6524 GB, free: 1.66 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001466/0.1489, allocations: 7.984 kB / 0.6525 GB, free: 1.652 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 8.758e-05/0.149, allocations: 55.78 kB / 0.6525 GB, free: 1.598 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.656e-05/0.1491, allocations: 8 kB / 0.6525 GB, free: 1.59 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.866e-05/0.1492, allocations: 31.84 kB / 0.6525 GB, free: 1.559 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.934e-05/0.1493, allocations: 23.86 kB / 0.6526 GB, free: 1.535 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.003e-05/0.1493, allocations: 4 kB / 0.6526 GB, free: 1.531 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.336e-05/0.1493, allocations: 4 kB / 0.6526 GB, free: 1.527 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.918e-05/0.1494, allocations: 7.984 kB / 0.6526 GB, free: 1.52 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.733e-05/0.1494, allocations: 23.88 kB / 0.6526 GB, free: 1.496 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001026/0.1495, allocations: 52.02 kB / 0.6527 GB, free: 1.445 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.1495, allocations: 0 / 0.6527 GB, free: 1.445 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1495, allocations: 0 / 0.6527 GB, free: 1.445 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.316e-06/0.1495, allocations: 0 / 0.6527 GB, free: 1.445 MB / 494.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.0005045/0.15, allocations: 359.3 kB / 0.653 GB, free: 1.047 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.1501, allocations: 12.62 kB / 0.653 GB, free: 1.035 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.482e-05/0.1501, allocations: 38.73 kB / 0.653 GB, free: 0.9883 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.058e-05/0.1502, allocations: 8.891 kB / 0.6531 GB, free: 0.9805 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000125/0.1503, allocations: 168.3 kB / 0.6532 GB, free: 0.7773 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.26e-05/0.1503, allocations: 8.125 kB / 0.6532 GB, free: 0.7695 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.706e-06/0.1503, allocations: 0 / 0.6532 GB, free: 0.7695 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001606/0.1505, allocations: 65.55 kB / 0.6533 GB, free: 0.6992 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.1505, allocations: 4 kB / 0.6533 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.877e-06/0.1505, allocations: 0 / 0.6533 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.1505, allocations: 0 / 0.6533 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001318/0.1507, allocations: 31.97 kB / 0.6533 GB, free: 0.6641 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003934/0.1511, allocations: 268.9 kB / 0.6536 GB, free: 360 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000123/0.1512, allocations: 54.44 kB / 0.6536 GB, free: 296 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.7e-05/0.1513, allocations: 28.92 kB / 0.6537 GB, free: 264 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.56e-05/0.1513, allocations: 0 / 0.6537 GB, free: 264 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.498e-05/0.1513, allocations: 30.56 kB / 0.6537 GB, free: 224 kB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/0.1514, allocations: 0 / 0.6537 GB, free: 224 kB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003207/0.1517, allocations: 93.59 kB / 0.6538 GB, free: 124 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.954e-05/0.1517, allocations: 55.41 kB / 0.6538 GB, free: 56 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001089/0.1518, allocations: 117.8 kB / 0.6539 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.644e-05/0.1519, allocations: 29.7 kB / 0.654 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.366e-05/0.1519, allocations: 88.12 kB / 0.6541 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.325e-05/0.152, allocations: 15.84 kB / 0.6541 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.384e-05/0.152, allocations: 13.72 kB / 0.6541 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001295/0.1521, allocations: 322.8 kB / 0.6544 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.986e-05/0.1522, allocations: 15.98 kB / 0.6544 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.079e-05/0.1523, allocations: 23.98 kB / 0.6544 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001271/0.1524, allocations: 40.83 kB / 0.6545 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.1524, allocations: 0 / 0.6545 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001698/0.1526, allocations: 65.67 kB / 0.6545 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.293e-05/0.1526, allocations: 4 kB / 0.6545 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.827e-06/0.1526, allocations: 4 kB / 0.6545 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.1526, allocations: 4 kB / 0.6545 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.379e-05/0.1527, allocations: 11.92 kB / 0.6545 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.595e-06/0.1528, allocations: 4 kB / 0.6546 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.089e-05/0.1528, allocations: 7.891 kB / 0.6546 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.449e-05/0.1528, allocations: 11.98 kB / 0.6546 GB, free: 15.25 MB / 0.4981 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 7.96e-05/0.1529, allocations: 109.8 kB / 0.6547 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.664e-05/0.153, allocations: 4 kB / 0.6547 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.28e-05/0.153, allocations: 3.906 kB / 0.6547 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.153, allocations: 4 kB / 0.6547 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.153, allocations: 0 / 0.6547 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.153, allocations: 7.938 kB / 0.6547 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001921/0.1532, allocations: 173.6 kB / 0.6549 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.1532, allocations: 0 / 0.6549 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.702e-05/0.1533, allocations: 11.94 kB / 0.6549 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.1533, allocations: 0 / 0.6549 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.045e-05/0.1533, allocations: 3.984 kB / 0.6549 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.1533, allocations: 3.938 kB / 0.6549 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.1533, allocations: 0 / 0.6549 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002323/0.1536, allocations: 179.4 kB / 0.6551 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.556e-05/0.1536, allocations: 85.05 kB / 0.6551 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.292e-05/0.1536, allocations: 0 / 0.6551 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.862e-05/0.1537, allocations: 4 kB / 0.6551 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.796e-05/0.1538, allocations: 8.359 kB / 0.6551 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.062e-06/0.1538, allocations: 3.938 kB / 0.6551 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.898e-05/0.1538, allocations: 95.27 kB / 0.6552 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1538, allocations: 4 kB / 0.6552 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002124/0.1541, allocations: 8 kB / 0.6553 GB, free: 14.45 MB / 0.4981 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.0005213/0.1546, allocations: 0.6969 MB / 0.6559 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001762/0.1548, allocations: 43.91 kB / 0.656 GB, free: 13.69 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.1548, allocations: 0 / 0.656 GB, free: 13.69 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 7.238e-05/0.1549, allocations: 19.98 kB / 0.656 GB, free: 13.67 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002114/0.1551, allocations: 11.94 kB / 0.656 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005109/0.1556, allocations: 198.4 kB / 0.6562 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002916/0.1559, allocations: 0.6885 MB / 0.6569 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.373e-05/0.1559, allocations: 0 / 0.6569 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.737e-05/0.156, allocations: 15.42 kB / 0.6569 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of SimCode: time 2.7e-07/0.156, allocations: 0 / 0.6569 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02191/0.1779, allocations: 1.512 MB / 0.6584 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.799/7.977, allocations: 13.66 kB / 0.6584 GB, free: 11.31 MB / 0.4981 GB (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 & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 IBPSA_latest_IBPSA_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.fmu > IBPSA_latest_IBPSA.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1)