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.007229/0.007229, allocations: 98.86 kB / 15.73 MB, free: 6.043 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.002075/0.002075, allocations: 202.1 kB / 16.68 MB, free: 5.965 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.438/1.438, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002547/0.002547, allocations: 287 kB / 290.8 MB, free: 1.91 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.088/1.088, allocations: 178.6 MB / 0.5074 GB, free: 4.488 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002802/0.002802, allocations: 92.61 kB / 0.6944 GB, free: 3.551 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4293/0.4321, allocations: 89.14 MB / 0.7814 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties): time 0.006157/0.4383, allocations: 4.048 MB / 0.7854 GB, free: 10.96 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.003115/0.4415, allocations: 2.435 MB / 0.7877 GB, free: 9.246 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001213/0.4416, allocations: 1.156 kB / 0.7877 GB, free: 9.246 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0002615/0.4419, allocations: 46.19 kB / 0.7878 GB, free: 9.223 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0003304/0.4422, allocations: 97.7 kB / 0.7879 GB, free: 9.16 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001475/0.4437, allocations: 0.5241 MB / 0.7884 GB, free: 8.887 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.000383/0.4441, allocations: 261.6 kB / 0.7886 GB, free: 8.777 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.017e-05/0.4442, allocations: 10.2 kB / 0.7886 GB, free: 8.777 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002377/0.4444, allocations: 113.2 kB / 0.7887 GB, free: 8.734 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001691/0.4446, allocations: 95.58 kB / 0.7888 GB, free: 8.695 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.83e-05/0.4446, allocations: 7.812 kB / 0.7888 GB, free: 8.695 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009957/0.4456, allocations: 452.1 kB / 0.7893 GB, free: 8.531 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 8.862e-05/0.4457, allocations: 43.44 kB / 0.7893 GB, free: 8.508 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001155/0.4458, allocations: 92.58 kB / 0.7894 GB, free: 8.461 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0009123/0.4468, allocations: 405.9 kB / 0.7898 GB, free: 8.332 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.4468, allocations: 1.266 kB / 0.7898 GB, free: 8.332 MB / 0.5606 GB Notification: Performance of FrontEnd: time 3.426e-06/0.4468, allocations: 0 / 0.7898 GB, free: 8.332 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 7.024e-06/0.4468, allocations: 4.438 kB / 0.7898 GB, free: 8.328 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: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0009287/0.4477, allocations: 0.5002 MB / 0.7903 GB, free: 7.875 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.4478, allocations: 9.922 kB / 0.7903 GB, free: 7.875 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.687e-05/0.4479, allocations: 52.86 kB / 0.7903 GB, free: 7.824 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00211/0.45, allocations: 183.8 kB / 0.7905 GB, free: 7.793 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003515/0.4503, allocations: 215.9 kB / 0.7907 GB, free: 7.57 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.226e-05/0.4504, allocations: 11.14 kB / 0.7907 GB, free: 7.566 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.692e-05/0.4504, allocations: 22.22 kB / 0.7908 GB, free: 7.555 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006988/0.4511, allocations: 308.4 kB / 0.7911 GB, free: 7.375 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.4512, allocations: 3.938 kB / 0.7911 GB, free: 7.371 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.65e-05/0.4512, allocations: 7.094 kB / 0.7911 GB, free: 7.367 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.825e-05/0.4512, allocations: 6.672 kB / 0.7911 GB, free: 7.367 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007917/0.452, allocations: 266.9 kB / 0.7913 GB, free: 7.301 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001756/0.4538, allocations: 1.386 MB / 0.7927 GB, free: 6.012 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007296/0.4545, allocations: 190.5 kB / 0.7929 GB, free: 5.945 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002561/0.4548, allocations: 81.36 kB / 0.7929 GB, free: 5.914 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.665e-05/0.4548, allocations: 6.188 kB / 0.7929 GB, free: 5.91 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.95e-05/0.4549, allocations: 37.52 kB / 0.793 GB, free: 5.867 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=18): time 3.166e-06/0.4549, allocations: 3.984 kB / 0.793 GB, free: 5.863 MB / 0.5606 GB Notification: Performance of matching and sorting (n=18): time 0.0008385/0.4557, allocations: 242.9 kB / 0.7932 GB, free: 5.773 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.925e-05/0.4558, allocations: 54.67 kB / 0.7933 GB, free: 5.711 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001531/0.4559, allocations: 160.2 kB / 0.7934 GB, free: 5.586 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.327e-05/0.456, allocations: 32.3 kB / 0.7935 GB, free: 5.551 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 8.944e-05/0.4561, allocations: 128.2 kB / 0.7936 GB, free: 5.434 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 6.126e-05/0.4561, allocations: 68.2 kB / 0.7936 GB, free: 5.379 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.452e-05/0.4562, allocations: 50.17 kB / 0.7937 GB, free: 5.344 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001432/0.4564, allocations: 325.8 kB / 0.794 GB, free: 5.023 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000243/0.4566, allocations: 65.06 kB / 0.7941 GB, free: 5.008 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003025/0.4569, allocations: 145.3 kB / 0.7942 GB, free: 4.895 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000535/0.4575, allocations: 226.1 kB / 0.7944 GB, free: 4.734 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.4575, allocations: 0.9375 kB / 0.7944 GB, free: 4.734 MB / 0.5606 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000662/0.4582, allocations: 254.1 kB / 0.7947 GB, free: 4.629 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/0.4582, allocations: 5.703 kB / 0.7947 GB, free: 4.629 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.832e-06/0.4582, allocations: 3.062 kB / 0.7947 GB, free: 4.629 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/0.4582, allocations: 3.281 kB / 0.7947 GB, free: 4.629 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003634/0.4586, allocations: 66.34 kB / 0.7947 GB, free: 4.621 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.326e-06/0.4586, allocations: 4.719 kB / 0.7947 GB, free: 4.621 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002448/0.4589, allocations: 31.16 kB / 0.7948 GB, free: 4.605 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.49e-05/0.4589, allocations: 14.33 kB / 0.7948 GB, free: 4.602 MB / 0.5606 GB 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.0001277/0.459, allocations: 134.9 kB / 0.7949 GB, free: 4.469 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.526e-05/0.4591, allocations: 16.62 kB / 0.7949 GB, free: 4.461 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006802/0.4598, allocations: 228.5 kB / 0.7951 GB, free: 4.359 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.4598, allocations: 3.375 kB / 0.7951 GB, free: 4.359 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.4598, allocations: 0 / 0.7951 GB, free: 4.359 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.401e-06/0.4598, allocations: 2.859 kB / 0.7951 GB, free: 4.359 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003069/0.4601, allocations: 238.8 kB / 0.7954 GB, free: 4.133 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-06/0.4601, allocations: 4 kB / 0.7954 GB, free: 4.129 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003128/0.4605, allocations: 44.11 kB / 0.7954 GB, free: 4.129 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.4605, allocations: 1.031 kB / 0.7954 GB, free: 4.129 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.231e-05/0.4605, allocations: 6.375 kB / 0.7954 GB, free: 4.125 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.001e-06/0.4605, allocations: 2.188 kB / 0.7954 GB, free: 4.125 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.4605, allocations: 7.938 kB / 0.7954 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006298/0.4611, allocations: 302.6 kB / 0.7957 GB, free: 3.926 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000106/0.4613, allocations: 106.4 kB / 0.7958 GB, free: 3.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.667e-05/0.4613, allocations: 9.281 kB / 0.7958 GB, free: 3.812 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002886/0.4616, allocations: 18.16 kB / 0.7959 GB, free: 3.809 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.202e-05/0.4616, allocations: 9.578 kB / 0.7959 GB, free: 3.809 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.961e-05/0.4617, allocations: 12.02 kB / 0.7959 GB, free: 3.805 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 9.081e-05/0.4618, allocations: 117 kB / 0.796 GB, free: 3.719 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.1e-07/0.4618, allocations: 3.938 kB / 0.796 GB, free: 3.715 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003911/0.4622, allocations: 63.91 kB / 0.796 GB, free: 3.703 MB / 0.5606 GB 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.001017/0.4632, allocations: 0.8633 MB / 0.7969 GB, free: 2.973 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0005726/0.4638, allocations: 186.4 kB / 0.7971 GB, free: 2.922 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.4638, allocations: 0 / 0.7971 GB, free: 2.922 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0002544/0.4641, allocations: 85.84 kB / 0.7972 GB, free: 2.902 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004929/0.4646, allocations: 62.44 kB / 0.7972 GB, free: 2.883 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003419/0.468, allocations: 2.18 MB / 0.7993 GB, free: 1.215 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003362/0.4683, allocations: 0.7133 MB / 0.8 GB, free: 0.5195 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0002824/0.4686, allocations: 55.89 kB / 0.8001 GB, free: 500 kB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001341/0.4688, allocations: 49.22 kB / 0.8001 GB, free: 464 kB / 0.5606 GB Notification: Performance of SimCode: time 2.6e-07/0.4688, allocations: 1 kB / 0.8001 GB, free: 464 kB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02669/0.4955, allocations: 5.221 MB / 0.8052 GB, free: 13.85 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.07/8.566, allocations: 11.38 kB / 0.8052 GB, free: 13.84 MB / 0.5762 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)