Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.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.Specialized.Water.Examples.TemperatureDependentDensityProperties,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Specialized_Water_Examples_TemperatureDependentDensityProperties",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Specialized_Water_Examples_TemperatureDependentDensityProperties",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.001451/0.001451, allocations: 108 kB / 15.6 MB, free: 132 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.001759/0.001759, allocations: 193.8 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.241/2.241, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.003582/0.003582, allocations: 286.7 kB / 290.7 MB, free: 2.012 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.356/1.356, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003575/0.003575, allocations: 97.86 kB / 0.5953 GB, free: 27.98 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2601/0.2637, allocations: 86.98 MB / 0.6803 GB, free: 0.625 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties): time 0.01046/0.2742, allocations: 4.04 MB / 0.6842 GB, free: 12.57 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.005741/0.28, allocations: 2.422 MB / 0.6866 GB, free: 10.14 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001676/0.2802, allocations: 0 / 0.6866 GB, free: 10.14 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004077/0.2806, allocations: 51.67 kB / 0.6866 GB, free: 10.09 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000566/0.2812, allocations: 99.34 kB / 0.6867 GB, free: 9.996 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002783/0.284, allocations: 0.5252 MB / 0.6873 GB, free: 9.477 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005727/0.2846, allocations: 267.8 kB / 0.6875 GB, free: 9.215 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.764e-05/0.2847, allocations: 13.53 kB / 0.6875 GB, free: 9.203 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003654/0.2851, allocations: 115.7 kB / 0.6876 GB, free: 9.09 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002571/0.2854, allocations: 95.59 kB / 0.6877 GB, free: 8.996 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.346e-05/0.2854, allocations: 8 kB / 0.6877 GB, free: 8.988 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001701/0.2872, allocations: 451.3 kB / 0.6882 GB, free: 8.547 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001161/0.2873, allocations: 39.83 kB / 0.6882 GB, free: 8.508 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001808/0.2875, allocations: 87.64 kB / 0.6883 GB, free: 8.422 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001191/0.2887, allocations: 403.2 kB / 0.6887 GB, free: 8.027 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.927e-06/0.2887, allocations: 0 / 0.6887 GB, free: 8.027 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.2888, allocations: 0 / 0.6887 GB, free: 8.027 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.527e-05/0.2888, allocations: 4 kB / 0.6887 GB, free: 8.023 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: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.001383/0.2902, allocations: 0.5109 MB / 0.6892 GB, free: 7.465 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.507e-05/0.2903, allocations: 8.031 kB / 0.6892 GB, free: 7.457 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001024/0.2904, allocations: 54.73 kB / 0.6892 GB, free: 7.395 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004246/0.2947, allocations: 176.5 kB / 0.6894 GB, free: 7.223 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003975/0.2951, allocations: 212.2 kB / 0.6896 GB, free: 6.977 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.106e-05/0.2952, allocations: 12.7 kB / 0.6896 GB, free: 6.965 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.689e-05/0.2952, allocations: 16.38 kB / 0.6896 GB, free: 6.949 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001265/0.2965, allocations: 312.7 kB / 0.6899 GB, free: 6.609 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.813e-05/0.2966, allocations: 0 / 0.6899 GB, free: 6.609 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.438e-05/0.2966, allocations: 8 kB / 0.6899 GB, free: 6.602 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.476e-05/0.2967, allocations: 8 kB / 0.6899 GB, free: 6.594 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001508/0.2982, allocations: 259.6 kB / 0.6902 GB, free: 6.34 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003047/0.3013, allocations: 1.4 MB / 0.6916 GB, free: 4.824 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001388/0.3027, allocations: 190.4 kB / 0.6917 GB, free: 4.629 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004597/0.3032, allocations: 80.81 kB / 0.6918 GB, free: 4.547 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.591e-05/0.3033, allocations: 8 kB / 0.6918 GB, free: 4.539 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.731e-05/0.3033, allocations: 34.5 kB / 0.6919 GB, free: 4.496 MB / 494.1 MB Notification: Performance of pre-optimization done (n=18): time 3.247e-06/0.3033, allocations: 0 / 0.6919 GB, free: 4.496 MB / 494.1 MB Notification: Performance of matching and sorting (n=18): time 0.001621/0.305, allocations: 247.1 kB / 0.6921 GB, free: 4.25 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.917e-05/0.3051, allocations: 55.34 kB / 0.6921 GB, free: 4.184 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002424/0.3053, allocations: 164.3 kB / 0.6923 GB, free: 4.016 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.652e-05/0.3054, allocations: 29.7 kB / 0.6923 GB, free: 3.98 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001206/0.3055, allocations: 124 kB / 0.6924 GB, free: 3.855 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001019/0.3056, allocations: 67.08 kB / 0.6925 GB, free: 3.789 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001578/0.3058, allocations: 45.94 kB / 0.6926 GB, free: 3.734 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001661/0.306, allocations: 334.8 kB / 0.6929 GB, free: 3.398 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004595/0.3065, allocations: 64.42 kB / 0.6929 GB, free: 3.336 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005507/0.3071, allocations: 145.8 kB / 0.6931 GB, free: 3.164 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001037/0.3081, allocations: 211.8 kB / 0.6933 GB, free: 2.926 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.469e-06/0.3081, allocations: 0 / 0.6933 GB, free: 2.926 MB / 494.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001298/0.3095, allocations: 257 kB / 0.6935 GB, free: 2.668 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.358e-05/0.3095, allocations: 4 kB / 0.6935 GB, free: 2.664 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.114e-05/0.3095, allocations: 4 kB / 0.6935 GB, free: 2.66 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.78e-05/0.3096, allocations: 4.312 kB / 0.6935 GB, free: 2.656 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007861/0.3104, allocations: 71.89 kB / 0.6936 GB, free: 2.586 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.756e-05/0.3104, allocations: 4 kB / 0.6936 GB, free: 2.582 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000504/0.3109, allocations: 31.67 kB / 0.6936 GB, free: 2.551 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.581e-05/0.311, allocations: 12 kB / 0.6937 GB, free: 2.539 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (28): * Single equations (assignments): 28 * 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.0002141/0.3112, allocations: 134.4 kB / 0.6938 GB, free: 2.398 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001161/0.3114, allocations: 11.91 kB / 0.6938 GB, free: 2.387 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001354/0.3127, allocations: 236.5 kB / 0.694 GB, free: 2.148 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.977e-06/0.3128, allocations: 3.984 kB / 0.694 GB, free: 2.145 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.3128, allocations: 0 / 0.694 GB, free: 2.145 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.3128, allocations: 0 / 0.694 GB, free: 2.145 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005863/0.3134, allocations: 245.4 kB / 0.6943 GB, free: 1.855 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.125e-06/0.3134, allocations: 0 / 0.6943 GB, free: 1.855 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006236/0.3141, allocations: 51.91 kB / 0.6943 GB, free: 1.805 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.013e-06/0.3141, allocations: 0 / 0.6943 GB, free: 1.805 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.612e-05/0.3141, allocations: 8 kB / 0.6943 GB, free: 1.797 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.007e-06/0.3142, allocations: 7.938 kB / 0.6943 GB, free: 1.789 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.3142, allocations: 0 / 0.6943 GB, free: 1.789 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001173/0.3154, allocations: 305 kB / 0.6946 GB, free: 1.477 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001853/0.3156, allocations: 104.8 kB / 0.6947 GB, free: 1.355 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.672e-05/0.3157, allocations: 4 kB / 0.6947 GB, free: 1.352 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005435/0.3162, allocations: 19.98 kB / 0.6947 GB, free: 1.332 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.759e-05/0.3163, allocations: 11.98 kB / 0.6947 GB, free: 1.32 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.946e-05/0.3163, allocations: 11.98 kB / 0.6948 GB, free: 1.309 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001584/0.3165, allocations: 120.7 kB / 0.6949 GB, free: 1.191 MB / 494.1 MB Notification: Performance of sort global known variables: time 6.21e-07/0.3165, allocations: 0 / 0.6949 GB, free: 1.191 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000749/0.3173, allocations: 60.12 kB / 0.6949 GB, free: 1.133 MB / 494.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 (20): * Single equations (assignments): 20 * 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.001876/0.3192, allocations: 0.8644 MB / 0.6958 GB, free: 248 kB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001145/0.3204, allocations: 189.8 kB / 0.696 GB, free: 60 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.3204, allocations: 0.625 kB / 0.696 GB, free: 60 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005326/0.3209, allocations: 91.89 kB / 0.696 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001036/0.322, allocations: 57.97 kB / 0.6961 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006195/0.3282, allocations: 2.142 MB / 0.6982 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004588/0.3287, allocations: 0.7212 MB / 0.6989 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00083/0.3295, allocations: 49.92 kB / 0.6989 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002089/0.3298, allocations: 47.42 kB / 0.699 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of SimCode: time 3.406e-06/0.3298, allocations: 4 kB / 0.699 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03953/0.3693, allocations: 5.16 MB / 0.704 GB, free: 7.824 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.53/10.9, allocations: 11.38 kB / 0.704 GB, free: 7.816 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties_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_Specialized_Water_Examples_TemperatureDependentDensityProperties.fmu > BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe 2>&1)