Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.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.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_PropyleneGlycolWaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_PropyleneGlycolWaterTemperatureEnthalpyInversion",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.007947/0.007947, allocations: 99.81 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.002035/0.002035, allocations: 195.2 kB / 16.67 MB, free: 5.973 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.323/1.323, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002278/0.002278, allocations: 275.3 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9727/0.9727, allocations: 169.3 MB / 0.4983 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00186/0.00186, allocations: 96.06 kB / 0.681 GB, free: 7.484 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3754/0.3773, allocations: 86.97 MB / 0.7659 GB, free: 3.875 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion): time 0.005154/0.3825, allocations: 3.717 MB / 0.7695 GB, free: 140 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0002146/0.3827, allocations: 155.5 kB / 0.7697 GB, free: 15.98 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.009e-05/0.3828, allocations: 0 / 0.7697 GB, free: 15.98 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001021/0.3829, allocations: 7.938 kB / 0.7697 GB, free: 15.98 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 6.882e-05/0.383, allocations: 11.91 kB / 0.7697 GB, free: 15.96 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003608/0.3833, allocations: 87.69 kB / 0.7698 GB, free: 15.88 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 7.952e-05/0.3834, allocations: 31.91 kB / 0.7698 GB, free: 15.85 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 3.889e-05/0.3835, allocations: 4 kB / 0.7698 GB, free: 15.84 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 3.847e-05/0.3835, allocations: 11.98 kB / 0.7698 GB, free: 15.83 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 6.61e-05/0.3836, allocations: 23.84 kB / 0.7698 GB, free: 15.81 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.02e-05/0.3836, allocations: 0 / 0.7698 GB, free: 15.81 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005478/0.3842, allocations: 183.4 kB / 0.77 GB, free: 15.63 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 4.049e-05/0.3842, allocations: 7.984 kB / 0.77 GB, free: 15.62 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 2.73e-05/0.3842, allocations: 7.984 kB / 0.77 GB, free: 15.61 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001296/0.3844, allocations: 43.7 kB / 0.7701 GB, free: 15.57 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.3844, allocations: 4 kB / 0.7701 GB, free: 15.57 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.543e-06/0.3844, allocations: 3.938 kB / 0.7701 GB, free: 15.57 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.629e-06/0.3844, allocations: 0 / 0.7701 GB, free: 15.57 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003668/0.3848, allocations: 340.7 kB / 0.7704 GB, free: 15.19 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.3848, allocations: 8.031 kB / 0.7704 GB, free: 15.18 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.448e-05/0.3849, allocations: 38.75 kB / 0.7704 GB, free: 15.14 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.311e-05/0.3849, allocations: 0.9375 kB / 0.7704 GB, free: 15.14 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001051/0.385, allocations: 164.4 kB / 0.7706 GB, free: 14.94 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.496e-05/0.3851, allocations: 34.27 kB / 0.7706 GB, free: 14.9 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.218e-05/0.3851, allocations: 4.125 kB / 0.7706 GB, free: 14.89 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001332/0.3852, allocations: 41.62 kB / 0.7707 GB, free: 14.85 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.196e-06/0.3853, allocations: 0 / 0.7707 GB, free: 14.85 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.126e-05/0.3853, allocations: 0 / 0.7707 GB, free: 14.85 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.474e-05/0.3853, allocations: 12 kB / 0.7707 GB, free: 14.84 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.615e-05/0.3854, allocations: 11.98 kB / 0.7707 GB, free: 14.82 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000418/0.3858, allocations: 334 kB / 0.771 GB, free: 14.43 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 3.905e-05/0.3858, allocations: 22.52 kB / 0.771 GB, free: 14.4 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.627e-05/0.3859, allocations: 8.922 kB / 0.7711 GB, free: 14.39 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 8.262e-05/0.386, allocations: 81.11 kB / 0.7711 GB, free: 14.29 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.908e-05/0.386, allocations: 38.55 kB / 0.7712 GB, free: 14.24 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 1.272e-06/0.386, allocations: 0 / 0.7712 GB, free: 14.24 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.0001447/0.3861, allocations: 37.66 kB / 0.7712 GB, free: 14.2 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.118e-05/0.3862, allocations: 59.47 kB / 0.7713 GB, free: 14.13 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.32e-05/0.3863, allocations: 105.8 kB / 0.7714 GB, free: 14.02 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.666e-05/0.3863, allocations: 29.7 kB / 0.7714 GB, free: 13.98 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.199e-05/0.3863, allocations: 84.09 kB / 0.7715 GB, free: 13.89 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 4.729e-06/0.3864, allocations: 3.938 kB / 0.7715 GB, free: 13.89 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.356e-05/0.3864, allocations: 17.72 kB / 0.7715 GB, free: 13.87 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.785e-05/0.3865, allocations: 318.8 kB / 0.7718 GB, free: 13.55 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.769e-05/0.3865, allocations: 4 kB / 0.7718 GB, free: 13.54 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.571e-05/0.3866, allocations: 21.72 kB / 0.7718 GB, free: 13.52 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.894e-05/0.3866, allocations: 17.7 kB / 0.7718 GB, free: 13.49 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3866, allocations: 4 kB / 0.7718 GB, free: 13.49 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.273e-05/0.3867, allocations: 45.92 kB / 0.7719 GB, free: 13.44 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/0.3867, allocations: 4 kB / 0.7719 GB, free: 13.43 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.3867, allocations: 0 / 0.7719 GB, free: 13.43 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.3868, allocations: 8.062 kB / 0.7719 GB, free: 13.43 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.991e-05/0.3868, allocations: 7.984 kB / 0.7719 GB, free: 13.42 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.418e-06/0.3868, allocations: 0 / 0.7719 GB, free: 13.42 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.267e-05/0.3869, allocations: 7.938 kB / 0.7719 GB, free: 13.41 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.048e-05/0.3869, allocations: 4 kB / 0.7719 GB, free: 13.41 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 (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 8.75e-05/0.387, allocations: 116.2 kB / 0.772 GB, free: 13.29 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.114e-05/0.387, allocations: 4 kB / 0.772 GB, free: 13.28 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001135/0.3871, allocations: 128 kB / 0.7721 GB, free: 13.15 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-05/0.3872, allocations: 184.3 kB / 0.7723 GB, free: 12.96 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.089e-05/0.3873, allocations: 184.2 kB / 0.7725 GB, free: 12.78 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.567e-05/0.3873, allocations: 180.3 kB / 0.7727 GB, free: 12.59 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002191/0.3875, allocations: 409.1 kB / 0.7731 GB, free: 12.14 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-05/0.3876, allocations: 105 kB / 0.7732 GB, free: 12.03 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.365e-05/0.3876, allocations: 109 kB / 0.7733 GB, free: 11.91 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.044e-05/0.3877, allocations: 184.2 kB / 0.7734 GB, free: 11.73 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.063e-05/0.3878, allocations: 176.3 kB / 0.7736 GB, free: 11.55 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.669e-05/0.3878, allocations: 180.2 kB / 0.7738 GB, free: 11.36 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.49e-05/0.3879, allocations: 176.3 kB / 0.774 GB, free: 11.18 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001463/0.388, allocations: 315.7 kB / 0.7743 GB, free: 10.85 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000127/0.3882, allocations: 182.1 kB / 0.7744 GB, free: 10.65 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.071e-05/0.3883, allocations: 180.2 kB / 0.7746 GB, free: 10.46 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002173/0.3885, allocations: 113 kB / 0.7747 GB, free: 10.35 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.232e-05/0.3886, allocations: 184.2 kB / 0.7749 GB, free: 10.16 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.657e-05/0.3886, allocations: 108.9 kB / 0.775 GB, free: 10.05 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.925e-05/0.3887, allocations: 87.27 kB / 0.7751 GB, free: 9.961 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3887, allocations: 0 / 0.7751 GB, free: 9.961 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.000264/0.389, allocations: 23.88 kB / 0.7751 GB, free: 9.938 MB / 0.545 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 (0): * Single equations (assignments): 0 * 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.0005641/0.3895, allocations: 0.8243 MB / 0.7759 GB, free: 9.086 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 8.513e-05/0.3896, allocations: 23.92 kB / 0.7759 GB, free: 9.062 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.971e-06/0.3896, allocations: 0 / 0.7759 GB, free: 9.062 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 1.342e-06/0.3896, allocations: 0 / 0.7759 GB, free: 9.062 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003825/0.39, allocations: 459.8 kB / 0.7764 GB, free: 8.609 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000976/0.391, allocations: 1.332 MB / 0.7777 GB, free: 7.188 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002189/0.3912, allocations: 0.6729 MB / 0.7783 GB, free: 6.488 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 4.454e-05/0.3913, allocations: 4 kB / 0.7783 GB, free: 6.484 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.506e-05/0.3913, allocations: 15.44 kB / 0.7783 GB, free: 6.469 MB / 0.545 GB Notification: Performance of SimCode: time 3e-07/0.3913, allocations: 0 / 0.7783 GB, free: 6.469 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01673/0.4081, allocations: 1.544 MB / 0.7798 GB, free: 5.09 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.197/7.605, allocations: 7.109 kB / 0.7798 GB, free: 5.086 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion_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_Media_Examples_PropyleneGlycolWaterTemperatureEnthalpyInversion.fmu > BuildingSystems_BuildingSystems.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe 2>&1)