Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Media.Examples.WaterProperties.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Media.Examples.WaterProperties,fileNamePrefix="IDEAS_IDEAS_Media_Examples_WaterProperties",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Media.Examples.WaterProperties,fileNamePrefix="IDEAS_IDEAS_Media_Examples_WaterProperties",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.001863/0.001863, allocations: 108 kB / 15.61 MB, free: 152 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.002187/0.002187, allocations: 196 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.367/1.367, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7394/0.7394, allocations: 132.2 MB / 422.6 MB, free: 1.805 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001303, allocations: 64.91 kB / 0.5019 GB, free: 3.805 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3659/0.3672, allocations: 80.2 MB / 0.5802 GB, free: 4.438 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Media.Examples.WaterProperties): time 0.005833/0.3731, allocations: 4.727 MB / 0.5848 GB, free: 1 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002816/0.3759, allocations: 2.693 MB / 0.5874 GB, free: 15.09 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001445/0.3761, allocations: 1.375 kB / 0.5874 GB, free: 15.09 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002679/0.3764, allocations: 53.86 kB / 0.5875 GB, free: 15.05 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003371/0.3767, allocations: 92.83 kB / 0.5876 GB, free: 15 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001449/0.3782, allocations: 0.4923 MB / 0.588 GB, free: 14.74 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003309/0.3785, allocations: 236 kB / 0.5883 GB, free: 14.64 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.279e-05/0.3786, allocations: 14.19 kB / 0.5883 GB, free: 14.63 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002698/0.3789, allocations: 114.5 kB / 0.5884 GB, free: 14.59 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001798/0.3791, allocations: 92.3 kB / 0.5885 GB, free: 14.55 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.838e-05/0.3791, allocations: 7.594 kB / 0.5885 GB, free: 14.55 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008951/0.38, allocations: 365.1 kB / 0.5888 GB, free: 14.4 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 8.915e-05/0.3801, allocations: 38.28 kB / 0.5889 GB, free: 14.38 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001232/0.3802, allocations: 82.52 kB / 0.5889 GB, free: 14.34 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008214/0.3811, allocations: 349.2 kB / 0.5893 GB, free: 14.23 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.3811, allocations: 5.75 kB / 0.5893 GB, free: 14.23 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.866e-06/0.3811, allocations: 0 / 0.5893 GB, free: 14.23 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.364e-06/0.3811, allocations: 3.938 kB / 0.5893 GB, free: 14.22 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0008316/0.382, allocations: 0.5035 MB / 0.5898 GB, free: 13.77 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.382, allocations: 10.09 kB / 0.5898 GB, free: 13.77 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.408e-05/0.3821, allocations: 52.91 kB / 0.5898 GB, free: 13.72 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001905/0.3823, allocations: 27.08 kB / 0.5899 GB, free: 13.71 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000241/0.3825, allocations: 213 kB / 0.5901 GB, free: 13.49 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.964e-05/0.3825, allocations: 15.27 kB / 0.5901 GB, free: 13.48 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.3e-05/0.3826, allocations: 18.12 kB / 0.5901 GB, free: 13.47 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004125/0.383, allocations: 254.2 kB / 0.5903 GB, free: 13.33 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.383, allocations: 1.266 kB / 0.5903 GB, free: 13.33 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.584e-05/0.383, allocations: 10.81 kB / 0.5904 GB, free: 13.32 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.598e-05/0.3831, allocations: 6.609 kB / 0.5904 GB, free: 13.32 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005675/0.3836, allocations: 428.7 kB / 0.5908 GB, free: 13.24 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00121/0.3849, allocations: 0.951 MB / 0.5917 GB, free: 12.4 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003037/0.3852, allocations: 155.2 kB / 0.5918 GB, free: 12.34 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000116/0.3853, allocations: 66.02 kB / 0.5919 GB, free: 12.32 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001463/0.3868, allocations: 1.82 MB / 0.5937 GB, free: 10.29 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.889e-05/0.3868, allocations: 45.09 kB / 0.5937 GB, free: 10.23 MB / 446.1 MB Notification: Performance of pre-optimization done (n=15): time 1.473e-06/0.3868, allocations: 0 / 0.5937 GB, free: 10.23 MB / 446.1 MB Notification: Performance of matching and sorting (n=15): time 0.0003528/0.3872, allocations: 149.5 kB / 0.5939 GB, free: 10.16 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.222e-05/0.3872, allocations: 56.88 kB / 0.5939 GB, free: 10.1 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001711/0.3874, allocations: 173.3 kB / 0.5941 GB, free: 9.965 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.859e-05/0.3874, allocations: 33.31 kB / 0.5941 GB, free: 9.93 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.097e-05/0.3875, allocations: 136.8 kB / 0.5943 GB, free: 9.805 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.185e-05/0.3876, allocations: 48.19 kB / 0.5943 GB, free: 9.77 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.991e-05/0.3877, allocations: 60.38 kB / 0.5944 GB, free: 9.727 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.3878, allocations: 327.7 kB / 0.5947 GB, free: 9.406 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.786e-05/0.3879, allocations: 33.11 kB / 0.5947 GB, free: 9.398 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001522/0.388, allocations: 140.3 kB / 0.5948 GB, free: 9.254 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002647/0.3883, allocations: 197.9 kB / 0.595 GB, free: 9.074 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.3883, allocations: 1.406 kB / 0.595 GB, free: 9.074 MB / 446.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003714/0.3887, allocations: 214.1 kB / 0.5952 GB, free: 8.977 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.545e-05/0.3887, allocations: 11.41 kB / 0.5952 GB, free: 8.973 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.255e-06/0.3887, allocations: 4.125 kB / 0.5952 GB, free: 8.973 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/0.3888, allocations: 9.5 kB / 0.5953 GB, free: 8.969 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000186/0.389, allocations: 53.52 kB / 0.5953 GB, free: 8.961 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.471e-05/0.389, allocations: 15.28 kB / 0.5953 GB, free: 8.953 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001281/0.3891, allocations: 24.22 kB / 0.5953 GB, free: 8.938 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.232e-05/0.3891, allocations: 10.94 kB / 0.5954 GB, free: 8.938 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (30): * Single equations (assignments): 29 * Array equations: 1 * 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.0001316/0.3893, allocations: 136.2 kB / 0.5955 GB, free: 8.805 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.871e-05/0.3894, allocations: 16.28 kB / 0.5955 GB, free: 8.797 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003191/0.3897, allocations: 158 kB / 0.5957 GB, free: 8.715 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.271e-05/0.3897, allocations: 6.219 kB / 0.5957 GB, free: 8.711 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.3897, allocations: 1.062 kB / 0.5957 GB, free: 8.711 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.3897, allocations: 0.9375 kB / 0.5957 GB, free: 8.711 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002782/0.39, allocations: 212.8 kB / 0.5959 GB, free: 8.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.39, allocations: 3.984 kB / 0.5959 GB, free: 8.496 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.759e-05/0.3901, allocations: 26.42 kB / 0.5959 GB, free: 8.492 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.3901, allocations: 1.406 kB / 0.5959 GB, free: 8.492 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.413e-05/0.3902, allocations: 10.53 kB / 0.5959 GB, free: 8.484 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.48e-06/0.3902, allocations: 6.062 kB / 0.5959 GB, free: 8.48 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.3902, allocations: 0 / 0.5959 GB, free: 8.48 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002857/0.3905, allocations: 224.6 kB / 0.5961 GB, free: 8.312 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001041/0.3906, allocations: 110.9 kB / 0.5962 GB, free: 8.203 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.73e-05/0.3906, allocations: 0.625 kB / 0.5962 GB, free: 8.203 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002125/0.3908, allocations: 20.47 kB / 0.5962 GB, free: 8.195 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.878e-05/0.3909, allocations: 11.08 kB / 0.5963 GB, free: 8.191 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.966e-05/0.3909, allocations: 13.23 kB / 0.5963 GB, free: 8.188 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001116/0.391, allocations: 123.3 kB / 0.5964 GB, free: 8.102 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.391, allocations: 0 / 0.5964 GB, free: 8.102 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004287/0.3915, allocations: 75.7 kB / 0.5965 GB, free: 8.086 MB / 446.1 MB 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 (15): * Single equations (assignments): 14 * Array equations: 1 * 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.0007635/0.3922, allocations: 0.8252 MB / 0.5973 GB, free: 7.367 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002582/0.3925, allocations: 135.5 kB / 0.5974 GB, free: 7.324 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.3925, allocations: 0 / 0.5974 GB, free: 7.324 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 7.129e-05/0.3926, allocations: 49.3 kB / 0.5974 GB, free: 7.309 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004496/0.393, allocations: 56.34 kB / 0.5975 GB, free: 7.289 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002232/0.3953, allocations: 2.037 MB / 0.5995 GB, free: 5.598 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002706/0.3956, allocations: 0.7116 MB / 0.6002 GB, free: 4.902 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001866/0.3958, allocations: 53.06 kB / 0.6002 GB, free: 4.875 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.284e-05/0.3958, allocations: 45.17 kB / 0.6003 GB, free: 4.848 MB / 446.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3958, allocations: 0 / 0.6003 GB, free: 4.848 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02483/0.4207, allocations: 5.171 MB / 0.6053 GB, free: 2.543 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.708/8.129, allocations: 9.984 kB / 0.6053 GB, free: 2.539 MB / 446.1 MB (rm -f IDEAS_IDEAS.Media.Examples.WaterProperties.pipe ; mkfifo IDEAS_IDEAS.Media.Examples.WaterProperties.pipe ; head -c 1048576 < IDEAS_IDEAS.Media.Examples.WaterProperties.pipe >> ../files/IDEAS_IDEAS.Media.Examples.WaterProperties.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Media.Examples.WaterProperties_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_IDEAS_Media_Examples_WaterProperties.fmu > IDEAS_IDEAS.Media.Examples.WaterProperties.pipe 2>&1)