Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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(Buildings.Media.Examples.WaterProperties,fileNamePrefix="Buildings_latest_Buildings_Media_Examples_WaterProperties",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterProperties,fileNamePrefix="Buildings_latest_Buildings_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.001329/0.001329, 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.001255/0.001255, allocations: 195.8 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.336/1.336, 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 11.0.1-master/package.mo): time 2.702/2.702, allocations: 469.4 MB / 0.742 GB, free: 7.688 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 61.58 kB / 0.9082 GB, free: 34.49 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3559/0.3572, allocations: 159.1 MB / 1.064 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterProperties): time 0.007901/0.3651, allocations: 4.713 MB / 1.068 GB, free: 9.801 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.003108/0.3683, allocations: 2.702 MB / 1.071 GB, free: 7.09 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002489/0.3686, allocations: 4 kB / 1.071 GB, free: 7.086 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0003631/0.369, allocations: 51.66 kB / 1.071 GB, free: 7.035 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0004253/0.3695, allocations: 87.38 kB / 1.071 GB, free: 6.949 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001598/0.3711, allocations: 0.4948 MB / 1.072 GB, free: 6.457 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003674/0.3715, allocations: 232 kB / 1.072 GB, free: 6.227 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 6.07e-05/0.3715, allocations: 9.562 kB / 1.072 GB, free: 6.219 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002726/0.3718, allocations: 119.5 kB / 1.072 GB, free: 6.102 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001869/0.372, allocations: 87.66 kB / 1.072 GB, free: 6.016 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.211e-05/0.372, allocations: 11.94 kB / 1.072 GB, free: 6.004 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008742/0.3729, allocations: 359.4 kB / 1.072 GB, free: 5.652 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.497e-05/0.373, allocations: 43.83 kB / 1.072 GB, free: 5.609 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001055/0.3731, allocations: 79.66 kB / 1.072 GB, free: 5.531 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0009646/0.3741, allocations: 363.3 kB / 1.073 GB, free: 5.176 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.3741, allocations: 0 / 1.073 GB, free: 5.176 MB / 0.8262 GB Notification: Performance of FrontEnd: time 4.108e-06/0.3741, allocations: 3.984 kB / 1.073 GB, free: 5.172 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.423e-05/0.3742, allocations: 0 / 1.073 GB, free: 5.172 MB / 0.8262 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.0009358/0.3751, allocations: 0.4915 MB / 1.073 GB, free: 4.633 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.146e-05/0.3752, allocations: 8.031 kB / 1.073 GB, free: 4.625 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.112e-05/0.3752, allocations: 54.73 kB / 1.073 GB, free: 4.562 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002187/0.3755, allocations: 24.69 kB / 1.073 GB, free: 4.539 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002691/0.3757, allocations: 216.1 kB / 1.074 GB, free: 4.289 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.779e-05/0.3758, allocations: 12.7 kB / 1.074 GB, free: 4.277 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.095e-05/0.3758, allocations: 20.38 kB / 1.074 GB, free: 4.258 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004318/0.3762, allocations: 247.8 kB / 1.074 GB, free: 3.996 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.3763, allocations: 0 / 1.074 GB, free: 3.996 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.928e-05/0.3763, allocations: 15.94 kB / 1.074 GB, free: 3.98 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.901e-05/0.3763, allocations: 7.984 kB / 1.074 GB, free: 3.973 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005089/0.3769, allocations: 431.5 kB / 1.074 GB, free: 3.551 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001254/0.3781, allocations: 0.9565 MB / 1.075 GB, free: 2.504 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002764/0.3784, allocations: 155.1 kB / 1.075 GB, free: 2.344 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.715e-05/0.3785, allocations: 56.89 kB / 1.075 GB, free: 2.285 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00136/0.3799, allocations: 1.837 MB / 1.077 GB, free: 92 kB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.926e-05/0.3799, allocations: 38.5 kB / 1.077 GB, free: 44 kB / 0.8262 GB Notification: Performance of pre-optimization done (n=15): time 1.683e-06/0.3799, allocations: 4 kB / 1.077 GB, free: 40 kB / 0.8262 GB Notification: Performance of matching and sorting (n=15): time 0.0003531/0.3803, allocations: 142.8 kB / 1.077 GB, free: 15.89 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.657e-05/0.3803, allocations: 55.41 kB / 1.077 GB, free: 15.83 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001423/0.3805, allocations: 163.3 kB / 1.078 GB, free: 15.66 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.574e-05/0.3805, allocations: 33.7 kB / 1.078 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 8.104e-05/0.3806, allocations: 135.8 kB / 1.078 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.82e-05/0.3807, allocations: 63.19 kB / 1.078 GB, free: 15.42 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.294e-05/0.3807, allocations: 53.7 kB / 1.078 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001051/0.3808, allocations: 326.8 kB / 1.078 GB, free: 15.03 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.084e-05/0.3809, allocations: 31.97 kB / 1.078 GB, free: 15 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001392/0.3811, allocations: 143.4 kB / 1.078 GB, free: 14.81 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002517/0.3813, allocations: 194.8 kB / 1.078 GB, free: 14.57 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.3813, allocations: 0 / 1.078 GB, free: 14.57 MB / 0.8419 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003602/0.3817, allocations: 227.2 kB / 1.079 GB, free: 14.35 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/0.3817, allocations: 4 kB / 1.079 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.3817, allocations: 4 kB / 1.079 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.022e-05/0.3818, allocations: 7.938 kB / 1.079 GB, free: 14.33 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001739/0.382, allocations: 55.92 kB / 1.079 GB, free: 14.28 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.156e-05/0.382, allocations: 7.984 kB / 1.079 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001192/0.3821, allocations: 27.69 kB / 1.079 GB, free: 14.24 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.075e-05/0.3821, allocations: 12 kB / 1.079 GB, free: 14.23 MB / 0.8419 GB 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.0001202/0.3822, allocations: 133.9 kB / 1.079 GB, free: 14.09 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.46e-05/0.3823, allocations: 15.81 kB / 1.079 GB, free: 14.07 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003079/0.3826, allocations: 154.9 kB / 1.079 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.37e-05/0.3826, allocations: 7.922 kB / 1.079 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.3827, allocations: 0 / 1.079 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.3827, allocations: 0 / 1.079 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002407/0.3829, allocations: 221.5 kB / 1.079 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.3829, allocations: 7.922 kB / 1.079 GB, free: 13.63 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.373e-05/0.383, allocations: 20 kB / 1.079 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.961e-06/0.383, allocations: 8 kB / 1.079 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.237e-05/0.383, allocations: 7.984 kB / 1.079 GB, free: 13.6 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/0.3831, allocations: 3.938 kB / 1.079 GB, free: 13.59 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.3831, allocations: 3.938 kB / 1.079 GB, free: 13.59 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000252/0.3833, allocations: 216.6 kB / 1.08 GB, free: 13.36 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 8.659e-05/0.3834, allocations: 104.9 kB / 1.08 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.754e-05/0.3834, allocations: 3.984 kB / 1.08 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000197/0.3836, allocations: 15.94 kB / 1.08 GB, free: 13.22 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.435e-05/0.3837, allocations: 11.98 kB / 1.08 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.38e-05/0.3837, allocations: 15.98 kB / 1.08 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 8.275e-05/0.3838, allocations: 120.9 kB / 1.08 GB, free: 13.08 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3838, allocations: 0 / 1.08 GB, free: 13.08 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004154/0.3842, allocations: 79.94 kB / 1.08 GB, free: 13 MB / 0.8419 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 (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.0007849/0.385, allocations: 0.8278 MB / 1.081 GB, free: 12.14 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002549/0.3853, allocations: 124.5 kB / 1.081 GB, free: 12.02 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.3853, allocations: 4.25 kB / 1.081 GB, free: 12.02 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 6.728e-05/0.3854, allocations: 47.86 kB / 1.081 GB, free: 11.97 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004467/0.3858, allocations: 60.84 kB / 1.081 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002227/0.3881, allocations: 2.027 MB / 1.083 GB, free: 9.727 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002664/0.3883, allocations: 0.7128 MB / 1.084 GB, free: 8.988 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001839/0.3885, allocations: 45.81 kB / 1.084 GB, free: 8.945 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.629e-05/0.3886, allocations: 47.42 kB / 1.084 GB, free: 8.898 MB / 0.8419 GB Notification: Performance of SimCode: time 3.91e-07/0.3886, allocations: 0 / 1.084 GB, free: 8.898 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02514/0.4138, allocations: 5.198 MB / 1.089 GB, free: 3.785 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.968/8.382, allocations: 7.328 kB / 1.089 GB, free: 3.781 MB / 0.8419 GB (rm -f Buildings_latest_Buildings.Media.Examples.WaterProperties.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.WaterProperties.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.WaterProperties.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.WaterProperties.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.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 Buildings_latest_Buildings_Media_Examples_WaterProperties.fmu > Buildings_latest_Buildings.Media.Examples.WaterProperties.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.WaterProperties_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_WaterProperties.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.WaterProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches