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.001825/0.001825, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002393/0.002393, allocations: 193.9 kB / 16.53 MB, free: 6.664 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.818/1.818, allocations: 222.9 MB / 240.2 MB, free: 4.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002172/0.002172, allocations: 290.5 kB / 290.7 MB, free: 1.957 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.351/1.351, allocations: 169.2 MB / 0.4982 GB, free: 13.9 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003207/0.003207, allocations: 93.36 kB / 0.5953 GB, free: 27.72 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2452/0.2484, allocations: 86.99 MB / 0.6803 GB, free: 0.5781 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterDerivativeCheck): time 0.00275/0.2512, allocations: 1.259 MB / 0.6815 GB, free: 15.32 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.005379/0.2566, allocations: 3.256 MB / 0.6847 GB, free: 12.05 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.86e-05/0.2567, allocations: 0 / 0.6847 GB, free: 12.05 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.41e-05/0.2568, allocations: 3.938 kB / 0.6847 GB, free: 12.04 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 7.363e-05/0.2568, allocations: 7.922 kB / 0.6847 GB, free: 12.04 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008453/0.2577, allocations: 107.5 kB / 0.6848 GB, free: 11.93 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 8.888e-05/0.2578, allocations: 27.92 kB / 0.6848 GB, free: 11.9 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.579e-05/0.2579, allocations: 7.984 kB / 0.6848 GB, free: 11.89 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.179e-05/0.258, allocations: 27.86 kB / 0.6849 GB, free: 11.87 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.397e-05/0.2581, allocations: 15.98 kB / 0.6849 GB, free: 11.85 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.736e-05/0.2581, allocations: 0 / 0.6849 GB, free: 11.85 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003489/0.2584, allocations: 83.8 kB / 0.685 GB, free: 11.77 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.206e-05/0.2585, allocations: 3.938 kB / 0.685 GB, free: 11.77 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.51e-05/0.2585, allocations: 19.92 kB / 0.685 GB, free: 11.75 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002575/0.2588, allocations: 68.14 kB / 0.685 GB, free: 11.68 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.2588, allocations: 0 / 0.685 GB, free: 11.68 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2588, allocations: 0 / 0.685 GB, free: 11.68 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.752e-06/0.2589, allocations: 0 / 0.685 GB, free: 11.68 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006073/0.2595, allocations: 351.4 kB / 0.6854 GB, free: 11.29 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.255e-05/0.2596, allocations: 8.031 kB / 0.6854 GB, free: 11.28 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.398e-05/0.2596, allocations: 34.75 kB / 0.6854 GB, free: 11.24 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001857/0.2598, allocations: 12.83 kB / 0.6854 GB, free: 11.23 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001963/0.26, allocations: 164.3 kB / 0.6856 GB, free: 11.03 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.565e-05/0.2601, allocations: 4.375 kB / 0.6856 GB, free: 11.02 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.006e-05/0.2601, allocations: 4.375 kB / 0.6856 GB, free: 11.02 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002299/0.2604, allocations: 57.61 kB / 0.6856 GB, free: 10.96 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.687e-05/0.2604, allocations: 4 kB / 0.6857 GB, free: 10.95 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.786e-05/0.2604, allocations: 4 kB / 0.6857 GB, free: 10.95 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.2604, allocations: 3.938 kB / 0.6857 GB, free: 10.95 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.909e-05/0.2605, allocations: 23.97 kB / 0.6857 GB, free: 10.92 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003133/0.2609, allocations: 165.7 kB / 0.6858 GB, free: 10.71 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000152/0.261, allocations: 50.5 kB / 0.6859 GB, free: 10.65 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.141e-05/0.2611, allocations: 16.86 kB / 0.6859 GB, free: 10.63 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001216/0.2623, allocations: 0.6024 MB / 0.6865 GB, free: 9.922 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.772e-05/0.2624, allocations: 30.56 kB / 0.6865 GB, free: 9.883 MB / 494.1 MB Notification: Performance of pre-optimization done (n=5): time 1.894e-06/0.2624, allocations: 0 / 0.6865 GB, free: 9.883 MB / 494.1 MB Notification: Performance of matching and sorting (n=7): time 0.001007/0.2634, allocations: 302.5 kB / 0.6868 GB, free: 9.535 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.23e-05/0.2635, allocations: 51.41 kB / 0.6869 GB, free: 9.473 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001214/0.2636, allocations: 113.8 kB / 0.687 GB, free: 9.352 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.373e-05/0.2637, allocations: 25.7 kB / 0.687 GB, free: 9.32 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.148e-05/0.2637, allocations: 84.05 kB / 0.6871 GB, free: 9.234 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.857e-05/0.2638, allocations: 31.55 kB / 0.6871 GB, free: 9.203 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.166e-05/0.2639, allocations: 25.72 kB / 0.6871 GB, free: 9.172 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001634/0.264, allocations: 314.8 kB / 0.6874 GB, free: 8.855 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.264e-05/0.2641, allocations: 15.92 kB / 0.6874 GB, free: 8.84 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.955e-05/0.2642, allocations: 57.14 kB / 0.6875 GB, free: 8.766 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001423/0.2644, allocations: 73.27 kB / 0.6876 GB, free: 8.676 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.2644, allocations: 0 / 0.6876 GB, free: 8.676 MB / 494.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002292/0.2646, allocations: 97.55 kB / 0.6877 GB, free: 8.574 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.2646, allocations: 7.938 kB / 0.6877 GB, free: 8.566 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.2647, allocations: 4 kB / 0.6877 GB, free: 8.562 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.898e-05/0.2647, allocations: 3.984 kB / 0.6877 GB, free: 8.559 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001309/0.2648, allocations: 16 kB / 0.6877 GB, free: 8.543 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.22e-05/0.2649, allocations: 4 kB / 0.6877 GB, free: 8.539 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.975e-05/0.2649, allocations: 3.938 kB / 0.6877 GB, free: 8.535 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.194e-05/0.265, allocations: 4 kB / 0.6877 GB, free: 8.531 MB / 494.1 MB 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 0.0001211/0.2651, allocations: 122.6 kB / 0.6878 GB, free: 8.402 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.483e-05/0.2652, allocations: 11.89 kB / 0.6878 GB, free: 8.391 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.881e-05/0.2652, allocations: 7.969 kB / 0.6878 GB, free: 8.387 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.2652, allocations: 0 / 0.6878 GB, free: 8.387 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.2652, allocations: 0 / 0.6878 GB, free: 8.387 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.014e-05/0.2653, allocations: 7.938 kB / 0.6878 GB, free: 8.379 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003955/0.2657, allocations: 169.7 kB / 0.688 GB, free: 8.164 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-06/0.2657, allocations: 4 kB / 0.688 GB, free: 8.16 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001446/0.2658, allocations: 12.44 kB / 0.688 GB, free: 8.148 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.2659, allocations: 4 kB / 0.688 GB, free: 8.145 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.48e-05/0.2659, allocations: 3.984 kB / 0.688 GB, free: 8.141 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.2659, allocations: 4 kB / 0.688 GB, free: 8.137 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.2659, allocations: 0 / 0.688 GB, free: 8.137 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002942/0.2662, allocations: 183.4 kB / 0.6882 GB, free: 7.941 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.507e-05/0.2663, allocations: 89.05 kB / 0.6883 GB, free: 7.836 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.476e-05/0.2664, allocations: 4 kB / 0.6883 GB, free: 7.832 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001776/0.2665, allocations: 0 / 0.6883 GB, free: 7.832 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.651e-05/0.2666, allocations: 15.92 kB / 0.6883 GB, free: 7.816 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.148e-06/0.2666, allocations: 0 / 0.6883 GB, free: 7.816 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.3e-05/0.2667, allocations: 83.28 kB / 0.6884 GB, free: 7.734 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.2667, allocations: 3.938 kB / 0.6884 GB, free: 7.73 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0004575/0.2672, allocations: 12 kB / 0.6884 GB, free: 7.719 MB / 494.1 MB 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.0007811/0.268, allocations: 0.7085 MB / 0.6891 GB, free: 6.98 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002136/0.2682, allocations: 40.39 kB / 0.6891 GB, free: 6.941 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.173e-06/0.2682, allocations: 4 kB / 0.6891 GB, free: 6.938 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 4.49e-05/0.2683, allocations: 15.92 kB / 0.6892 GB, free: 6.922 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005794/0.2689, allocations: 11.94 kB / 0.6892 GB, free: 6.91 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002707/0.2716, allocations: 1.524 MB / 0.6907 GB, free: 5.277 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005398/0.2721, allocations: 0.6885 MB / 0.6913 GB, free: 4.562 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001012/0.2723, allocations: 3.984 kB / 0.6913 GB, free: 4.559 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.489e-05/0.2723, allocations: 15.44 kB / 0.6913 GB, free: 4.543 MB / 494.1 MB Notification: Performance of SimCode: time 7.31e-07/0.2724, allocations: 4 kB / 0.6914 GB, free: 4.539 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03062/0.303, allocations: 1.626 MB / 0.6929 GB, free: 2.988 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.92/11.22, allocations: 17.36 kB / 0.693 GB, free: 2.98 MB / 494.1 MB (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)