Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.SupplyReturnTemperatureReset.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Controls.SetPoints.Examples.SupplyReturnTemperatureReset,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_SetPoints_Examples_SupplyReturnTemperatureReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Controls.SetPoints.Examples.SupplyReturnTemperatureReset,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_SetPoints_Examples_SupplyReturnTemperatureReset",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.003811/0.003811, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.00118/0.00118, allocations: 193.5 kB / 16.67 MB, free: 5.969 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.202/1.202, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002007/0.002007, allocations: 280.8 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8679/0.8679, allocations: 169.3 MB / 0.4983 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001713/0.001713, allocations: 95.84 kB / 0.6809 GB, free: 7.547 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3723/0.374, allocations: 86.96 MB / 0.7659 GB, free: 3.934 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.SetPoints.Examples.SupplyReturnTemperatureReset): time 0.002621/0.3766, allocations: 1.829 MB / 0.7676 GB, free: 2.094 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0003787/0.377, allocations: 121.4 kB / 0.7678 GB, free: 1.977 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001411/0.3772, allocations: 0 / 0.7678 GB, free: 1.977 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001372/0.3773, allocations: 15.8 kB / 0.7678 GB, free: 1.961 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0001286/0.3775, allocations: 55.55 kB / 0.7678 GB, free: 1.906 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001614/0.3777, allocations: 27.95 kB / 0.7679 GB, free: 1.879 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002639/0.3779, allocations: 175.1 kB / 0.768 GB, free: 1.707 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000147/0.3781, allocations: 32.89 kB / 0.7681 GB, free: 1.68 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001269/0.3782, allocations: 55.78 kB / 0.7681 GB, free: 1.625 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000114/0.3784, allocations: 71.69 kB / 0.7682 GB, free: 1.555 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.652e-05/0.3784, allocations: 8 kB / 0.7682 GB, free: 1.547 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 2.24e-05/0.3784, allocations: 8 kB / 0.7682 GB, free: 1.539 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 3.074e-05/0.3785, allocations: 27.91 kB / 0.7682 GB, free: 1.512 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 6.948e-05/0.3785, allocations: 63.67 kB / 0.7683 GB, free: 1.449 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.000173/0.3787, allocations: 124.8 kB / 0.7684 GB, free: 1.332 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.3787, allocations: 0 / 0.7684 GB, free: 1.332 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.372e-06/0.3787, allocations: 0 / 0.7684 GB, free: 1.332 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.661e-06/0.3787, allocations: 0 / 0.7684 GB, free: 1.332 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007235/0.3795, allocations: 462.8 kB / 0.7688 GB, free: 0.8281 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.3795, allocations: 8.031 kB / 0.7688 GB, free: 0.8203 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.861e-05/0.3795, allocations: 38.75 kB / 0.7689 GB, free: 0.7734 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.097e-05/0.3796, allocations: 16.84 kB / 0.7689 GB, free: 0.7578 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002615/0.3799, allocations: 206.5 kB / 0.7691 GB, free: 0.5195 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.216e-05/0.3799, allocations: 12.38 kB / 0.7691 GB, free: 0.5078 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.824e-05/0.3799, allocations: 4.375 kB / 0.7691 GB, free: 0.5039 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002552/0.3802, allocations: 115.9 kB / 0.7692 GB, free: 388 kB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.3802, allocations: 3.938 kB / 0.7692 GB, free: 384 kB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.221e-05/0.3802, allocations: 3.938 kB / 0.7692 GB, free: 380 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.401e-06/0.3802, allocations: 4 kB / 0.7692 GB, free: 376 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002776/0.3805, allocations: 99.92 kB / 0.7693 GB, free: 276 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006769/0.3812, allocations: 472.6 kB / 0.7698 GB, free: 15.75 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003524/0.3815, allocations: 133.2 kB / 0.7699 GB, free: 15.61 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001578/0.3817, allocations: 61.78 kB / 0.77 GB, free: 15.54 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.679e-05/0.3817, allocations: 4 kB / 0.77 GB, free: 15.54 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.014e-05/0.3818, allocations: 34.56 kB / 0.77 GB, free: 15.49 MB / 0.545 GB Notification: Performance of pre-optimization done (n=9): time 1.212e-06/0.3818, allocations: 0 / 0.77 GB, free: 15.49 MB / 0.545 GB Notification: Performance of matching and sorting (n=9): time 0.000548/0.3823, allocations: 181.5 kB / 0.7702 GB, free: 15.31 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.63e-05/0.3824, allocations: 85.05 kB / 0.7703 GB, free: 15.21 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001384/0.3825, allocations: 168.1 kB / 0.7704 GB, free: 15.03 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.524e-05/0.3825, allocations: 25.7 kB / 0.7704 GB, free: 15 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.974e-05/0.3826, allocations: 116 kB / 0.7706 GB, free: 14.88 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.652e-05/0.3826, allocations: 27.75 kB / 0.7706 GB, free: 14.86 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.065e-05/0.3827, allocations: 25.7 kB / 0.7706 GB, free: 14.82 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.71e-05/0.3828, allocations: 326.8 kB / 0.7709 GB, free: 14.5 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001387/0.3829, allocations: 40.22 kB / 0.771 GB, free: 14.46 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001372/0.3831, allocations: 61.62 kB / 0.771 GB, free: 14.39 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002706/0.3834, allocations: 109.7 kB / 0.7711 GB, free: 14.28 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3834, allocations: 0 / 0.7711 GB, free: 14.28 MB / 0.545 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003365/0.3837, allocations: 145.5 kB / 0.7713 GB, free: 14.13 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.3837, allocations: 4 kB / 0.7713 GB, free: 14.12 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.3837, allocations: 3.938 kB / 0.7713 GB, free: 14.12 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.3838, allocations: 8 kB / 0.7713 GB, free: 14.11 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001545/0.3839, allocations: 19.98 kB / 0.7713 GB, free: 14.09 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.02e-06/0.3839, allocations: 0 / 0.7713 GB, free: 14.09 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001164/0.3841, allocations: 19.92 kB / 0.7713 GB, free: 14.07 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.02e-05/0.3841, allocations: 4 kB / 0.7713 GB, free: 14.07 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (10): * Single equations (assignments): 10 * 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.87e-05/0.3842, allocations: 117.8 kB / 0.7714 GB, free: 13.95 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.987e-05/0.3842, allocations: 12.09 kB / 0.7714 GB, free: 13.93 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003895/0.3846, allocations: 166.6 kB / 0.7716 GB, free: 13.77 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.3846, allocations: 7.938 kB / 0.7716 GB, free: 13.76 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.3846, allocations: 0 / 0.7716 GB, free: 13.76 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.3846, allocations: 3.938 kB / 0.7716 GB, free: 13.75 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002595/0.3849, allocations: 221.7 kB / 0.7718 GB, free: 13.49 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.3849, allocations: 8 kB / 0.7718 GB, free: 13.48 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001394/0.3851, allocations: 27.97 kB / 0.7719 GB, free: 13.45 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.484e-06/0.3851, allocations: 0 / 0.7719 GB, free: 13.45 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.088e-05/0.3851, allocations: 4 kB / 0.7719 GB, free: 13.45 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.303e-06/0.3851, allocations: 4 kB / 0.7719 GB, free: 13.45 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.3851, allocations: 0 / 0.7719 GB, free: 13.45 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003711/0.3855, allocations: 314.7 kB / 0.7722 GB, free: 13.12 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.574e-05/0.3855, allocations: 93 kB / 0.7722 GB, free: 13.01 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.656e-05/0.3856, allocations: 4 kB / 0.7723 GB, free: 13.01 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001644/0.3857, allocations: 7.984 kB / 0.7723 GB, free: 13 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.542e-05/0.3858, allocations: 11.94 kB / 0.7723 GB, free: 12.99 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.522e-06/0.3858, allocations: 0 / 0.7723 GB, free: 12.99 MB / 0.545 GB Notification: Performance of sorting global known variables: time 9e-05/0.3859, allocations: 138 kB / 0.7724 GB, free: 12.86 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3859, allocations: 0 / 0.7724 GB, free: 12.86 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002714/0.3862, allocations: 24 kB / 0.7724 GB, free: 12.83 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (9): * Single equations (assignments): 9 * 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.0006102/0.3868, allocations: 0.8444 MB / 0.7733 GB, free: 11.96 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0003285/0.3871, allocations: 107.9 kB / 0.7734 GB, free: 11.85 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.3871, allocations: 0 / 0.7734 GB, free: 11.85 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001503/0.3873, allocations: 55.91 kB / 0.7734 GB, free: 11.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004061/0.3877, allocations: 52.95 kB / 0.7735 GB, free: 11.75 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002012/0.3897, allocations: 1.814 MB / 0.7752 GB, free: 9.848 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002291/0.39, allocations: 0.7083 MB / 0.7759 GB, free: 9.113 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 7.885e-05/0.3901, allocations: 12.64 kB / 0.7759 GB, free: 9.102 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.419e-05/0.3901, allocations: 39.42 kB / 0.776 GB, free: 9.062 MB / 0.545 GB Notification: Performance of SimCode: time 2.41e-07/0.3901, allocations: 0 / 0.776 GB, free: 9.062 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01913/0.4093, allocations: 3.651 MB / 0.7795 GB, free: 5.605 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.74/7.149, allocations: 11.77 kB / 0.7795 GB, free: 5.598 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.SupplyReturnTemperatureReset.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.SupplyReturnTemperatureReset.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.SupplyReturnTemperatureReset.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.SupplyReturnTemperatureReset.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.SupplyReturnTemperatureReset_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Controls_SetPoints_Examples_SupplyReturnTemperatureReset.fmu > BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.SupplyReturnTemperatureReset.pipe 2>&1)