Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Examples.WaterDerivativeCheck,fileNamePrefix="Buildings_10_Buildings_Media_Examples_WaterDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterDerivativeCheck,fileNamePrefix="Buildings_10_Buildings_Media_Examples_WaterDerivativeCheck",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.004826/0.004826, allocations: 102.7 kB / 15.74 MB, free: 6.07 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.001103/0.001103, allocations: 191 kB / 16.67 MB, free: 5.977 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.352/1.352, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.4/2.4, allocations: 437 MB / 0.7105 GB, free: 4.348 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 68.05 kB / 1.018 GB, free: 9.941 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8436/0.8449, allocations: 151.6 MB / 1.166 GB, free: 3.914 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.002657/0.8476, allocations: 1.248 MB / 1.167 GB, free: 2.656 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.004004/0.8516, allocations: 3.266 MB / 1.171 GB, free: 15.37 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.038e-05/0.8517, allocations: 0 / 1.171 GB, free: 15.37 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 1.952e-05/0.8517, allocations: 3.938 kB / 1.171 GB, free: 15.37 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 5.394e-05/0.8518, allocations: 7.984 kB / 1.171 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.000612/0.8524, allocations: 107.5 kB / 1.171 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 8.534e-05/0.8525, allocations: 35.89 kB / 1.171 GB, free: 15.22 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 4.313e-05/0.8526, allocations: 7.984 kB / 1.171 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 5.63e-05/0.8526, allocations: 19.92 kB / 1.171 GB, free: 15.19 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 7.461e-05/0.8527, allocations: 19.92 kB / 1.171 GB, free: 15.17 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 1.038e-05/0.8527, allocations: 0 / 1.171 GB, free: 15.17 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002904/0.853, allocations: 87.75 kB / 1.171 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 2.456e-05/0.8531, allocations: 15.91 kB / 1.171 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 4.155e-05/0.8531, allocations: 11.94 kB / 1.171 GB, free: 15.06 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0002264/0.8533, allocations: 71.56 kB / 1.171 GB, free: 14.99 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.8534, allocations: 0 / 1.171 GB, free: 14.99 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.885e-06/0.8534, allocations: 0 / 1.171 GB, free: 14.99 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 6.693e-06/0.8534, allocations: 0 / 1.171 GB, free: 14.99 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004671/0.8538, allocations: 347.3 kB / 1.171 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 5.095e-05/0.8539, allocations: 16.61 kB / 1.171 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.854e-05/0.8539, allocations: 38.75 kB / 1.171 GB, free: 14.54 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001039/0.8541, allocations: 4.938 kB / 1.171 GB, free: 14.54 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001018/0.8542, allocations: 160.4 kB / 1.171 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.362e-05/0.8542, allocations: 4.375 kB / 1.171 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.852e-05/0.8542, allocations: 16.27 kB / 1.171 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001255/0.8544, allocations: 53.61 kB / 1.172 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.044e-06/0.8544, allocations: 0 / 1.172 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.16e-05/0.8544, allocations: 0 / 1.172 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.8544, allocations: 0 / 1.172 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.675e-05/0.8545, allocations: 23.97 kB / 1.172 GB, free: 14.24 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001701/0.8546, allocations: 165.7 kB / 1.172 GB, free: 14.03 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001/0.8547, allocations: 50.58 kB / 1.172 GB, free: 13.97 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.084e-05/0.8548, allocations: 17 kB / 1.172 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007424/0.8555, allocations: 0.5985 MB / 1.172 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.448e-05/0.8556, allocations: 34.56 kB / 1.172 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=5): time 1.232e-06/0.8556, allocations: 0 / 1.172 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7): time 0.0006236/0.8562, allocations: 294.3 kB / 1.173 GB, free: 12.86 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.795e-05/0.8563, allocations: 63.39 kB / 1.173 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.161e-05/0.8563, allocations: 101.7 kB / 1.173 GB, free: 12.68 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.664e-05/0.8564, allocations: 29.7 kB / 1.173 GB, free: 12.64 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 4.79e-05/0.8564, allocations: 92.16 kB / 1.173 GB, free: 12.55 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.31e-05/0.8564, allocations: 31.73 kB / 1.173 GB, free: 12.52 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.382e-05/0.8565, allocations: 25.72 kB / 1.173 GB, free: 12.49 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.000109/0.8566, allocations: 314.8 kB / 1.173 GB, free: 12.17 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.161e-05/0.8567, allocations: 19.88 kB / 1.173 GB, free: 12.15 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.063e-05/0.8567, allocations: 49.14 kB / 1.173 GB, free: 12.09 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001021/0.8568, allocations: 85.08 kB / 1.173 GB, free: 11.98 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/0.8568, allocations: 0 / 1.173 GB, free: 11.98 MB / 0.9044 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000144/0.857, allocations: 93.73 kB / 1.174 GB, free: 11.89 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.393e-05/0.857, allocations: 12.12 kB / 1.174 GB, free: 11.88 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.857, allocations: 3.984 kB / 1.174 GB, free: 11.87 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.857, allocations: 3.984 kB / 1.174 GB, free: 11.87 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.291e-05/0.8571, allocations: 27.92 kB / 1.174 GB, free: 11.84 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.194e-06/0.8572, allocations: 0 / 1.174 GB, free: 11.84 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.489e-05/0.8572, allocations: 12.38 kB / 1.174 GB, free: 11.83 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.454e-06/0.8572, allocations: 4 kB / 1.174 GB, free: 11.82 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (12): * Single equations (assignments): 12 * 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 7.562e-05/0.8573, allocations: 109.8 kB / 1.174 GB, free: 11.71 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3e-05/0.8573, allocations: 4 kB / 1.174 GB, free: 11.7 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.247e-05/0.8574, allocations: 11.97 kB / 1.174 GB, free: 11.69 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.8574, allocations: 8 kB / 1.174 GB, free: 11.68 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.8574, allocations: 0 / 1.174 GB, free: 11.68 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.8574, allocations: 3.938 kB / 1.174 GB, free: 11.68 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002354/0.8576, allocations: 169.7 kB / 1.174 GB, free: 11.46 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.8576, allocations: 3.938 kB / 1.174 GB, free: 11.46 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.84e-05/0.8577, allocations: 15.98 kB / 1.174 GB, free: 11.44 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.8578, allocations: 0 / 1.174 GB, free: 11.44 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.012e-05/0.8578, allocations: 4 kB / 1.174 GB, free: 11.44 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.055e-06/0.8578, allocations: 4 kB / 1.174 GB, free: 11.43 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.8578, allocations: 0 / 1.174 GB, free: 11.43 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001785/0.858, allocations: 179.4 kB / 1.174 GB, free: 11.24 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.468e-05/0.858, allocations: 81.11 kB / 1.174 GB, free: 11.14 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.444e-05/0.858, allocations: 0 / 1.174 GB, free: 11.14 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001086/0.8582, allocations: 8.031 kB / 1.174 GB, free: 11.14 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.659e-05/0.8582, allocations: 7.875 kB / 1.174 GB, free: 11.13 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.566e-06/0.8582, allocations: 8 kB / 1.174 GB, free: 11.12 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 3.627e-05/0.8582, allocations: 75.28 kB / 1.174 GB, free: 11.05 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8582, allocations: 7.938 kB / 1.174 GB, free: 11.04 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002466/0.8585, allocations: 19.98 kB / 1.174 GB, free: 11.02 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (hLiqSym,cpSym,cvSym) * 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 (7): * Single equations (assignments): 7 * 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.0004341/0.8589, allocations: 0.6969 MB / 1.175 GB, free: 10.29 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.000127/0.8591, allocations: 51.92 kB / 1.175 GB, free: 10.24 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.8591, allocations: 0 / 1.175 GB, free: 10.24 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 2.271e-05/0.8591, allocations: 12 kB / 1.175 GB, free: 10.23 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003084/0.8594, allocations: 7.938 kB / 1.175 GB, free: 10.22 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001401/0.8608, allocations: 1.543 MB / 1.177 GB, free: 8.57 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002199/0.8611, allocations: 0.6846 MB / 1.177 GB, free: 7.859 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 4.842e-05/0.8611, allocations: 8 kB / 1.177 GB, free: 7.852 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.036e-05/0.8612, allocations: 19.38 kB / 1.177 GB, free: 7.836 MB / 0.9044 GB Notification: Performance of SimCode: time 2.3e-07/0.8612, allocations: 0 / 1.177 GB, free: 7.836 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01852/0.8797, allocations: 1.65 MB / 1.179 GB, free: 6.262 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.454/8.333, allocations: 7.641 kB / 1.179 GB, free: 6.258 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Media_Examples_WaterDerivativeCheck.fmu > Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Examples_WaterDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches