Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties,fileNamePrefix="Buildings_9_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityProperties",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties,fileNamePrefix="Buildings_9_Buildings_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.001075/0.001075, 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.00102/0.00102, allocations: 199.7 kB / 16.54 MB, free: 6.672 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.403/1.403, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.34/2.34, allocations: 390.3 MB / 0.6647 GB, free: 452 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001334/0.001335, allocations: 59.91 kB / 0.8126 GB, free: 14.35 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5573/0.5586, allocations: 140.4 MB / 0.9497 GB, free: 9.066 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties): time 0.004702/0.5634, allocations: 4.047 MB / 0.9537 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001983/0.5654, allocations: 2.429 MB / 0.956 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.401e-05/0.5655, allocations: 1.312 kB / 0.956 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002238/0.5657, allocations: 46.98 kB / 0.9561 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002148/0.566, allocations: 103 kB / 0.9562 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009128/0.5669, allocations: 0.5161 MB / 0.9567 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002443/0.5671, allocations: 257.2 kB / 0.9569 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.387e-05/0.5672, allocations: 17.34 kB / 0.9569 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001687/0.5674, allocations: 115.9 kB / 0.9571 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001196/0.5675, allocations: 91.31 kB / 0.9571 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.616e-05/0.5675, allocations: 12.78 kB / 0.9572 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006999/0.5682, allocations: 455.4 kB / 0.9576 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.458e-05/0.5683, allocations: 50.06 kB / 0.9576 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.844e-05/0.5684, allocations: 77.42 kB / 0.9577 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005184/0.5689, allocations: 415.9 kB / 0.9581 GB, free: 2.535 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.5689, allocations: 0 / 0.9581 GB, free: 2.535 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.092e-06/0.5689, allocations: 0 / 0.9581 GB, free: 2.535 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.949e-06/0.569, allocations: 1.375 kB / 0.9581 GB, free: 2.535 MB / 0.7169 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.0005945/0.5696, allocations: 0.4988 MB / 0.9586 GB, free: 2.062 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.475e-05/0.5696, allocations: 17.56 kB / 0.9586 GB, free: 2.055 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.085e-05/0.5696, allocations: 52.23 kB / 0.9587 GB, free: 2 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001923/0.5716, allocations: 180.1 kB / 0.9588 GB, free: 1.914 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001835/0.5718, allocations: 220.2 kB / 0.959 GB, free: 1.672 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.529e-05/0.5718, allocations: 15.48 kB / 0.9591 GB, free: 1.664 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.856e-05/0.5719, allocations: 14.78 kB / 0.9591 GB, free: 1.66 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005832/0.5724, allocations: 310.7 kB / 0.9594 GB, free: 1.414 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.5725, allocations: 5.047 kB / 0.9594 GB, free: 1.41 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.641e-05/0.5725, allocations: 7.438 kB / 0.9594 GB, free: 1.406 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.86e-05/0.5725, allocations: 4.406 kB / 0.9594 GB, free: 1.406 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006957/0.5732, allocations: 262.5 kB / 0.9596 GB, free: 1.277 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001288/0.5745, allocations: 1.376 MB / 0.961 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006671/0.5752, allocations: 195.1 kB / 0.9612 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002334/0.5754, allocations: 84.61 kB / 0.9612 GB, free: 15.76 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.963e-05/0.5755, allocations: 10.33 kB / 0.9613 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.141e-05/0.5755, allocations: 32.88 kB / 0.9613 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=18): time 1.633e-06/0.5755, allocations: 0 / 0.9613 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of matching and sorting (n=18): time 0.0007945/0.5763, allocations: 249.3 kB / 0.9615 GB, free: 15.58 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.187e-05/0.5764, allocations: 53.59 kB / 0.9616 GB, free: 15.52 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001296/0.5765, allocations: 161.3 kB / 0.9617 GB, free: 15.38 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.875e-05/0.5765, allocations: 31.64 kB / 0.9618 GB, free: 15.35 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.722e-05/0.5766, allocations: 122.5 kB / 0.9619 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.457e-05/0.5767, allocations: 62.53 kB / 0.9619 GB, free: 15.18 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.754e-05/0.5768, allocations: 50.84 kB / 0.962 GB, free: 15.13 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001002/0.5769, allocations: 330.8 kB / 0.9623 GB, free: 14.8 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000228/0.5771, allocations: 71.41 kB / 0.9624 GB, free: 14.77 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002593/0.5774, allocations: 143 kB / 0.9625 GB, free: 14.64 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004769/0.5779, allocations: 212 kB / 0.9627 GB, free: 14.48 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.5779, allocations: 0 / 0.9627 GB, free: 14.48 MB / 0.7325 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005977/0.5785, allocations: 255.5 kB / 0.963 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/0.5785, allocations: 6.25 kB / 0.963 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.5785, allocations: 2.438 kB / 0.963 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.549e-05/0.5785, allocations: 4.062 kB / 0.963 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000364/0.5789, allocations: 70.3 kB / 0.963 GB, free: 14.32 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.646e-06/0.5789, allocations: 3.281 kB / 0.963 GB, free: 14.32 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002359/0.5791, allocations: 35.2 kB / 0.9631 GB, free: 14.3 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.24e-05/0.5792, allocations: 17.09 kB / 0.9631 GB, free: 14.29 MB / 0.7325 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.0001148/0.5793, allocations: 124.7 kB / 0.9632 GB, free: 14.16 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.883e-05/0.5794, allocations: 20.55 kB / 0.9632 GB, free: 14.15 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006516/0.58, allocations: 230.9 kB / 0.9634 GB, free: 14.01 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.58, allocations: 2.281 kB / 0.9634 GB, free: 14.01 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.58, allocations: 0 / 0.9634 GB, free: 14.01 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-06/0.5801, allocations: 3.984 kB / 0.9635 GB, free: 14.01 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002691/0.5803, allocations: 249.3 kB / 0.9637 GB, free: 13.75 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.5803, allocations: 0 / 0.9637 GB, free: 13.75 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002993/0.5806, allocations: 49.48 kB / 0.9637 GB, free: 13.73 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.544e-06/0.5807, allocations: 2.719 kB / 0.9637 GB, free: 13.73 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.802e-05/0.5807, allocations: 4 kB / 0.9637 GB, free: 13.73 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.5807, allocations: 2.594 kB / 0.9637 GB, free: 13.73 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.5807, allocations: 4 kB / 0.9637 GB, free: 13.73 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005578/0.5813, allocations: 300.1 kB / 0.964 GB, free: 13.51 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 9.025e-05/0.5814, allocations: 101.4 kB / 0.9641 GB, free: 13.4 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.97e-05/0.5814, allocations: 13.09 kB / 0.9641 GB, free: 13.39 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002779/0.5817, allocations: 20.95 kB / 0.9642 GB, free: 13.38 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.148e-05/0.5817, allocations: 13.28 kB / 0.9642 GB, free: 13.37 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.304e-05/0.5818, allocations: 10.62 kB / 0.9642 GB, free: 13.37 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 7.64e-05/0.5818, allocations: 117.1 kB / 0.9643 GB, free: 13.27 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5818, allocations: 1.25 kB / 0.9643 GB, free: 13.27 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.000346/0.5822, allocations: 67.05 kB / 0.9644 GB, free: 13.26 MB / 0.7325 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.000882/0.5831, allocations: 0.8634 MB / 0.9652 GB, free: 12.5 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0005493/0.5836, allocations: 184.7 kB / 0.9654 GB, free: 12.42 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.5837, allocations: 0.75 kB / 0.9654 GB, free: 12.42 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000237/0.5839, allocations: 87.52 kB / 0.9655 GB, free: 12.38 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005176/0.5844, allocations: 61.16 kB / 0.9655 GB, free: 12.35 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002991/0.5874, allocations: 2.16 MB / 0.9676 GB, free: 10.55 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002317/0.5877, allocations: 0.7266 MB / 0.9683 GB, free: 9.832 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0003382/0.588, allocations: 47.56 kB / 0.9684 GB, free: 9.805 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001134/0.5881, allocations: 48.94 kB / 0.9684 GB, free: 9.77 MB / 0.7325 GB Notification: Performance of SimCode: time 2.3e-07/0.5881, allocations: 0 / 0.9684 GB, free: 9.77 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02272/0.6109, allocations: 5.133 MB / 0.9734 GB, free: 7.184 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.19/7.801, allocations: 1.562 kB / 0.9735 GB, free: 7.184 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe ; mkfifo Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe >> ../files/Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.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 Buildings_9_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityProperties.fmu > Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityProperties.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches