Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.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.WaterDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_WaterDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Examples.WaterDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_WaterDerivativeCheck",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.004609/0.004609, allocations: 101 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.001289/0.001289, 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.389/1.389, 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.002475/0.002475, allocations: 290.1 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.339/1.339, allocations: 178.5 MB / 0.5074 GB, free: 12.54 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0027/0.0027, allocations: 99.84 kB / 0.6943 GB, free: 15.2 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3754/0.3781, allocations: 89.12 MB / 0.7813 GB, free: 1.121 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterDerivativeCheck): time 0.001768/0.3799, allocations: 1.265 MB / 0.7825 GB, free: 120 kB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.003626/0.3836, allocations: 3.254 MB / 0.7857 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.106e-05/0.3836, allocations: 0 / 0.7857 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.903e-05/0.3836, allocations: 7.938 kB / 0.7857 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 3.642e-05/0.3837, allocations: 5.25 kB / 0.7857 GB, free: 13.44 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004442/0.3841, allocations: 106 kB / 0.7858 GB, free: 13.36 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.509e-05/0.3842, allocations: 40.58 kB / 0.7859 GB, free: 13.34 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 2.673e-05/0.3842, allocations: 2.531 kB / 0.7859 GB, free: 13.34 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.991e-05/0.3843, allocations: 17.72 kB / 0.7859 GB, free: 13.33 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.713e-05/0.3843, allocations: 22.66 kB / 0.7859 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.08e-05/0.3844, allocations: 5.594 kB / 0.7859 GB, free: 13.31 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002174/0.3846, allocations: 76.59 kB / 0.786 GB, free: 13.27 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.631e-05/0.3846, allocations: 10.25 kB / 0.786 GB, free: 13.26 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.843e-05/0.3846, allocations: 14.88 kB / 0.786 GB, free: 13.25 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001736/0.3848, allocations: 73.81 kB / 0.7861 GB, free: 13.22 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.3848, allocations: 3.938 kB / 0.7861 GB, free: 13.21 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.052e-06/0.3848, allocations: 0 / 0.7861 GB, free: 13.21 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.349e-06/0.3849, allocations: 0 / 0.7861 GB, free: 13.21 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004027/0.3853, allocations: 349.2 kB / 0.7864 GB, free: 12.84 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.181e-05/0.3853, allocations: 12.69 kB / 0.7864 GB, free: 12.84 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.446e-05/0.3854, allocations: 36.2 kB / 0.7865 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001098/0.3855, allocations: 5.219 kB / 0.7865 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001527/0.3856, allocations: 165.8 kB / 0.7866 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.418e-05/0.3857, allocations: 5.875 kB / 0.7866 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.042e-05/0.3857, allocations: 7.234 kB / 0.7866 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000137/0.3859, allocations: 58.77 kB / 0.7867 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.3859, allocations: 0 / 0.7867 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.378e-06/0.3859, allocations: 0 / 0.7867 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.988e-06/0.3859, allocations: 1 kB / 0.7867 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.358e-05/0.386, allocations: 27.25 kB / 0.7867 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001865/0.3862, allocations: 161.4 kB / 0.7869 GB, free: 12.32 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001004/0.3863, allocations: 60.36 kB / 0.7869 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.152e-05/0.3863, allocations: 19.53 kB / 0.787 GB, free: 12.26 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007164/0.387, allocations: 0.5894 MB / 0.7875 GB, free: 11.6 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.772e-05/0.3871, allocations: 37 kB / 0.7876 GB, free: 11.56 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=5): time 1.112e-06/0.3871, allocations: 0 / 0.7876 GB, free: 11.56 MB / 0.5606 GB Notification: Performance of matching and sorting (n=7): time 0.0005499/0.3876, allocations: 298.9 kB / 0.7878 GB, free: 11.27 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.939e-05/0.3877, allocations: 56.5 kB / 0.7879 GB, free: 11.2 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.995e-05/0.3878, allocations: 110.4 kB / 0.788 GB, free: 11.09 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.71e-05/0.3878, allocations: 26.83 kB / 0.788 GB, free: 11.05 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.332e-05/0.3879, allocations: 89.16 kB / 0.7881 GB, free: 10.96 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.247e-05/0.3879, allocations: 30.64 kB / 0.7881 GB, free: 10.94 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.286e-05/0.3879, allocations: 25.44 kB / 0.7882 GB, free: 10.91 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001274/0.3881, allocations: 321.1 kB / 0.7885 GB, free: 10.59 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.644e-05/0.3881, allocations: 7.469 kB / 0.7885 GB, free: 10.59 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.594e-05/0.3882, allocations: 61.23 kB / 0.7885 GB, free: 10.53 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.865e-05/0.3883, allocations: 78.41 kB / 0.7886 GB, free: 10.45 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.3883, allocations: 1.156 kB / 0.7886 GB, free: 10.45 MB / 0.5606 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000146/0.3884, allocations: 106.7 kB / 0.7887 GB, free: 10.38 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.257e-05/0.3884, allocations: 5.625 kB / 0.7887 GB, free: 10.38 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.3885, allocations: 1.062 kB / 0.7887 GB, free: 10.38 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.3885, allocations: 2.562 kB / 0.7887 GB, free: 10.38 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.464e-05/0.3886, allocations: 20 kB / 0.7887 GB, free: 10.38 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.698e-06/0.3886, allocations: 6.516 kB / 0.7888 GB, free: 10.37 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.906e-05/0.3886, allocations: 9.156 kB / 0.7888 GB, free: 10.36 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.573e-06/0.3886, allocations: 4.781 kB / 0.7888 GB, free: 10.36 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (12): * Single equations (assignments): 12 * 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.324e-05/0.3887, allocations: 121.2 kB / 0.7889 GB, free: 10.24 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.646e-05/0.3888, allocations: 6.219 kB / 0.7889 GB, free: 10.23 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.454e-05/0.3888, allocations: 9.156 kB / 0.7889 GB, free: 10.23 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.033e-06/0.3888, allocations: 1.188 kB / 0.7889 GB, free: 10.23 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.3888, allocations: 0 / 0.7889 GB, free: 10.23 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.3888, allocations: 3.938 kB / 0.7889 GB, free: 10.23 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000255/0.3891, allocations: 173.6 kB / 0.7891 GB, free: 10.02 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.3891, allocations: 1.062 kB / 0.7891 GB, free: 10.02 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.701e-05/0.3892, allocations: 16.67 kB / 0.7891 GB, free: 10.02 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.3892, allocations: 1.062 kB / 0.7891 GB, free: 10.02 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.853e-06/0.3892, allocations: 0 / 0.7891 GB, free: 10.02 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.3892, allocations: 5.375 kB / 0.7891 GB, free: 10.02 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.3892, allocations: 0 / 0.7891 GB, free: 10.02 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001847/0.3894, allocations: 181.5 kB / 0.7893 GB, free: 9.852 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.317e-05/0.3895, allocations: 79.17 kB / 0.7893 GB, free: 9.758 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.484e-05/0.3895, allocations: 5.062 kB / 0.7893 GB, free: 9.754 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001065/0.3896, allocations: 6.469 kB / 0.7893 GB, free: 9.75 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.495e-05/0.3896, allocations: 6.344 kB / 0.7894 GB, free: 9.746 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.472e-06/0.3896, allocations: 1.281 kB / 0.7894 GB, free: 9.746 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.285e-05/0.3897, allocations: 86.59 kB / 0.7894 GB, free: 9.664 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3897, allocations: 0 / 0.7894 GB, free: 9.664 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002523/0.3899, allocations: 10.91 kB / 0.7894 GB, free: 9.664 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (hLiqSym,cpSym,cvSym) * 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 (7): * Single equations (assignments): 7 * 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.0004751/0.3904, allocations: 0.7084 MB / 0.7901 GB, free: 8.973 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001094/0.3905, allocations: 49.72 kB / 0.7902 GB, free: 8.949 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3905, allocations: 1.094 kB / 0.7902 GB, free: 8.949 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 2.146e-05/0.3906, allocations: 10.97 kB / 0.7902 GB, free: 8.949 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002705/0.3908, allocations: 11.34 kB / 0.7902 GB, free: 8.941 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001482/0.3923, allocations: 1.532 MB / 0.7917 GB, free: 7.457 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002925/0.3926, allocations: 0.6856 MB / 0.7924 GB, free: 6.754 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 4.227e-05/0.3927, allocations: 7.438 kB / 0.7924 GB, free: 6.75 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.789e-05/0.3927, allocations: 11.22 kB / 0.7924 GB, free: 6.742 MB / 0.5606 GB Notification: Performance of SimCode: time 2.21e-07/0.3927, allocations: 0 / 0.7924 GB, free: 6.742 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02413/0.4169, allocations: 1.681 MB / 0.794 GB, free: 5.816 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.758/8.175, allocations: 6.656 kB / 0.794 GB, free: 5.812 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Media_Examples_WaterDerivativeCheck.fmu > BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.pipe 2>&1)