Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Media.Examples.WaterDerivativeCheck,fileNamePrefix="Buildings_8_Buildings_Media_Examples_WaterDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterDerivativeCheck,fileNamePrefix="Buildings_8_Buildings_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.001204/0.001204, allocations: 109.4 kB / 15.69 MB, free: 128 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.001207/0.001207, allocations: 187.9 kB / 16.62 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.565/1.565, allocations: 205.1 MB / 222.5 MB, free: 4.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.838/1.838, allocations: 292.3 MB / 0.549 GB, free: 12.75 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002593/0.002593, allocations: 74.03 kB / 0.6717 GB, free: 26.35 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2704/0.2731, allocations: 114.6 MB / 0.7836 GB, free: 13.29 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.002588/0.2757, allocations: 1.256 MB / 0.7848 GB, free: 12.02 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.003897/0.2796, allocations: 3.258 MB / 0.788 GB, free: 8.738 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.75e-05/0.2797, allocations: 0 / 0.788 GB, free: 8.738 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2e-05/0.2798, allocations: 4 kB / 0.788 GB, free: 8.734 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.571e-05/0.2798, allocations: 11.92 kB / 0.788 GB, free: 8.723 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006016/0.2805, allocations: 99.55 kB / 0.7881 GB, free: 8.625 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 9.605e-05/0.2806, allocations: 47.83 kB / 0.7882 GB, free: 8.578 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 4.379e-05/0.2806, allocations: 0 / 0.7882 GB, free: 8.578 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 4.518e-05/0.2807, allocations: 19.86 kB / 0.7882 GB, free: 8.559 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.058e-05/0.2807, allocations: 19.92 kB / 0.7882 GB, free: 8.539 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.28e-05/0.2808, allocations: 4 kB / 0.7882 GB, free: 8.535 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002641/0.281, allocations: 75.81 kB / 0.7883 GB, free: 8.461 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.765e-05/0.2811, allocations: 11.97 kB / 0.7883 GB, free: 8.449 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.486e-05/0.2811, allocations: 15.94 kB / 0.7883 GB, free: 8.434 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001954/0.2813, allocations: 76 kB / 0.7884 GB, free: 8.359 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.2813, allocations: 0 / 0.7884 GB, free: 8.359 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.933e-06/0.2813, allocations: 0 / 0.7884 GB, free: 8.359 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.087e-05/0.2813, allocations: 0 / 0.7884 GB, free: 8.359 MB / 0.6075 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.0004468/0.2818, allocations: 347.4 kB / 0.7887 GB, free: 7.973 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/0.2818, allocations: 16.02 kB / 0.7887 GB, free: 7.957 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.032e-05/0.2819, allocations: 38.75 kB / 0.7888 GB, free: 7.91 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001034/0.282, allocations: 4.938 kB / 0.7888 GB, free: 7.906 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001335/0.2821, allocations: 160.4 kB / 0.7889 GB, free: 7.711 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.335e-05/0.2822, allocations: 4.375 kB / 0.7889 GB, free: 7.707 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.712e-05/0.2822, allocations: 12.36 kB / 0.789 GB, free: 7.695 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001392/0.2823, allocations: 53.61 kB / 0.789 GB, free: 7.637 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.876e-06/0.2824, allocations: 3.938 kB / 0.789 GB, free: 7.633 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.276e-05/0.2824, allocations: 4 kB / 0.789 GB, free: 7.629 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.2824, allocations: 0 / 0.789 GB, free: 7.629 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.381e-05/0.2825, allocations: 23.97 kB / 0.789 GB, free: 7.605 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001756/0.2826, allocations: 165.6 kB / 0.7892 GB, free: 7.395 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001016/0.2827, allocations: 50.62 kB / 0.7892 GB, free: 7.336 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.961e-05/0.2828, allocations: 20.84 kB / 0.7893 GB, free: 7.312 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006798/0.2835, allocations: 0.5868 MB / 0.7898 GB, free: 6.617 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.31e-05/0.2835, allocations: 38.56 kB / 0.7899 GB, free: 6.57 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=5): time 2.395e-06/0.2835, allocations: 0 / 0.7899 GB, free: 6.57 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0005594/0.2841, allocations: 306.8 kB / 0.7902 GB, free: 6.219 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.857e-05/0.2841, allocations: 55.39 kB / 0.7902 GB, free: 6.152 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.18e-05/0.2842, allocations: 105.7 kB / 0.7903 GB, free: 6.039 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.405e-05/0.2842, allocations: 29.7 kB / 0.7903 GB, free: 6.004 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.044e-05/0.2843, allocations: 84.14 kB / 0.7904 GB, free: 5.918 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.017e-05/0.2843, allocations: 31.55 kB / 0.7905 GB, free: 5.887 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.63e-05/0.2843, allocations: 25.72 kB / 0.7905 GB, free: 5.855 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.162e-05/0.2844, allocations: 318.8 kB / 0.7908 GB, free: 5.535 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.74e-05/0.2845, allocations: 12 kB / 0.7908 GB, free: 5.523 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.032e-05/0.2845, allocations: 57.08 kB / 0.7909 GB, free: 5.449 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.489e-05/0.2846, allocations: 73.08 kB / 0.7909 GB, free: 5.359 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.02e-07/0.2846, allocations: 0 / 0.7909 GB, free: 5.359 MB / 0.6075 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001231/0.2848, allocations: 93.55 kB / 0.791 GB, free: 5.262 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.919e-05/0.2848, allocations: 15.97 kB / 0.791 GB, free: 5.246 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.2848, allocations: 0 / 0.791 GB, free: 5.246 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.2848, allocations: 4 kB / 0.791 GB, free: 5.242 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.912e-05/0.2849, allocations: 16 kB / 0.791 GB, free: 5.227 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.516e-06/0.2849, allocations: 7.922 kB / 0.7911 GB, free: 5.219 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.998e-05/0.285, allocations: 12.22 kB / 0.7911 GB, free: 5.207 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.835e-06/0.285, allocations: 4 kB / 0.7911 GB, free: 5.203 MB / 0.6075 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 6.986e-05/0.2851, allocations: 113.8 kB / 0.7912 GB, free: 5.082 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.516e-05/0.2851, allocations: 4 kB / 0.7912 GB, free: 5.078 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.009e-05/0.2851, allocations: 11.95 kB / 0.7912 GB, free: 5.066 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.2851, allocations: 4 kB / 0.7912 GB, free: 5.062 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.2851, allocations: 0 / 0.7912 GB, free: 5.062 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.2851, allocations: 3.938 kB / 0.7912 GB, free: 5.059 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002287/0.2854, allocations: 169.7 kB / 0.7914 GB, free: 4.844 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.2854, allocations: 0 / 0.7914 GB, free: 4.844 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.684e-05/0.2855, allocations: 19.98 kB / 0.7914 GB, free: 4.824 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.2855, allocations: 3.938 kB / 0.7914 GB, free: 4.82 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.033e-05/0.2855, allocations: 7.938 kB / 0.7914 GB, free: 4.812 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.2855, allocations: 0 / 0.7914 GB, free: 4.812 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.2855, allocations: 4 kB / 0.7914 GB, free: 4.809 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000173/0.2857, allocations: 175.4 kB / 0.7916 GB, free: 4.621 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.215e-05/0.2858, allocations: 81.11 kB / 0.7916 GB, free: 4.523 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.425e-05/0.2858, allocations: 0 / 0.7916 GB, free: 4.523 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001067/0.2859, allocations: 12.03 kB / 0.7917 GB, free: 4.512 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.357e-05/0.2859, allocations: 3.938 kB / 0.7917 GB, free: 4.508 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.573e-06/0.2859, allocations: 4 kB / 0.7917 GB, free: 4.504 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 3.551e-05/0.286, allocations: 79.28 kB / 0.7917 GB, free: 4.426 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.7e-07/0.286, allocations: 4 kB / 0.7917 GB, free: 4.422 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.000246/0.2862, allocations: 15.98 kB / 0.7918 GB, free: 4.406 MB / 0.6075 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.0004323/0.2867, allocations: 0.7046 MB / 0.7924 GB, free: 3.672 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001051/0.2868, allocations: 47.91 kB / 0.7925 GB, free: 3.625 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.2868, allocations: 0 / 0.7925 GB, free: 3.625 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 2.487e-05/0.2868, allocations: 19.94 kB / 0.7925 GB, free: 3.605 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002742/0.2871, allocations: 8 kB / 0.7925 GB, free: 3.598 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001359/0.2885, allocations: 1.548 MB / 0.794 GB, free: 1.938 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002183/0.2887, allocations: 0.6807 MB / 0.7947 GB, free: 1.23 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.446e-05/0.2887, allocations: 11.78 kB / 0.7947 GB, free: 1.219 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.542e-05/0.2888, allocations: 15.44 kB / 0.7947 GB, free: 1.203 MB / 0.6075 GB Notification: Performance of SimCode: time 2.41e-07/0.2888, allocations: 0 / 0.7947 GB, free: 1.203 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01941/0.3082, allocations: 1.635 MB / 0.7963 GB, free: 15.63 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.625/7.933, allocations: 0 / 0.7963 GB, free: 15.63 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_8_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_8_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_8_Buildings.Media.Examples.WaterDerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Media.Examples.WaterDerivativeCheck_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-08 Buildings_8_Buildings_Media_Examples_WaterDerivativeCheck.fmu > Buildings_8_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1)