Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Media_Examples_WaterDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterDerivativeCheck,fileNamePrefix="Buildings_11_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.007219/0.007219, allocations: 99.34 kB / 15.73 MB, free: 6.059 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.002022/0.002022, allocations: 195.3 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.423/1.423, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.864/2.864, allocations: 469.8 MB / 0.7425 GB, free: 7.363 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001968/0.001968, allocations: 63.89 kB / 1.065 GB, free: 13.65 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2693/0.2713, allocations: 159.1 MB / 1.22 GB, free: 14.39 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.002216/0.2735, allocations: 1.276 MB / 1.221 GB, free: 13.1 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.003779/0.2773, allocations: 3.262 MB / 1.225 GB, free: 9.82 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.088e-05/0.2773, allocations: 0 / 1.225 GB, free: 9.82 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 1.682e-05/0.2774, allocations: 0 / 1.225 GB, free: 9.82 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 3.72e-05/0.2774, allocations: 7.922 kB / 1.225 GB, free: 9.812 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004408/0.2779, allocations: 107.5 kB / 1.225 GB, free: 9.707 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 7.129e-05/0.2779, allocations: 31.86 kB / 1.225 GB, free: 9.676 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 2.987e-05/0.278, allocations: 11.98 kB / 1.225 GB, free: 9.664 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 4.1e-05/0.278, allocations: 15.92 kB / 1.225 GB, free: 9.648 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.852e-05/0.2781, allocations: 15.98 kB / 1.225 GB, free: 9.633 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 9.628e-06/0.2781, allocations: 0 / 1.225 GB, free: 9.633 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002267/0.2783, allocations: 79.8 kB / 1.225 GB, free: 9.555 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.748e-05/0.2784, allocations: 15.86 kB / 1.225 GB, free: 9.539 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.572e-05/0.2784, allocations: 23.92 kB / 1.225 GB, free: 9.516 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001681/0.2786, allocations: 59.86 kB / 1.225 GB, free: 9.457 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 2.876e-06/0.2786, allocations: 4 kB / 1.225 GB, free: 9.453 MB / 0.9825 GB Notification: Performance of FrontEnd: time 9.32e-07/0.2786, allocations: 0 / 1.225 GB, free: 9.453 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 3.998e-06/0.2786, allocations: 0 / 1.225 GB, free: 9.453 MB / 0.9825 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.0004119/0.279, allocations: 347.3 kB / 1.225 GB, free: 9.066 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.284e-05/0.2791, allocations: 12.03 kB / 1.225 GB, free: 9.055 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.185e-05/0.2791, allocations: 38.73 kB / 1.225 GB, free: 9.008 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.887e-05/0.2792, allocations: 4.938 kB / 1.225 GB, free: 9.004 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001185/0.2793, allocations: 164.3 kB / 1.225 GB, free: 8.805 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.406e-05/0.2793, allocations: 8.375 kB / 1.225 GB, free: 8.797 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.155e-05/0.2794, allocations: 12.31 kB / 1.225 GB, free: 8.785 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001235/0.2795, allocations: 61.53 kB / 1.226 GB, free: 8.719 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.176e-06/0.2795, allocations: 0 / 1.226 GB, free: 8.719 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.847e-06/0.2795, allocations: 0 / 1.226 GB, free: 8.719 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.2795, allocations: 0 / 1.226 GB, free: 8.719 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.331e-05/0.2796, allocations: 19.98 kB / 1.226 GB, free: 8.699 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001797/0.2798, allocations: 165.7 kB / 1.226 GB, free: 8.488 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001006/0.2799, allocations: 50.56 kB / 1.226 GB, free: 8.43 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.196e-05/0.2799, allocations: 16.84 kB / 1.226 GB, free: 8.41 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007254/0.2807, allocations: 0.6064 MB / 1.226 GB, free: 7.695 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.486e-05/0.2807, allocations: 30.56 kB / 1.226 GB, free: 7.656 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=5): time 1.252e-06/0.2807, allocations: 0 / 1.226 GB, free: 7.656 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.000556/0.2813, allocations: 306.3 kB / 1.227 GB, free: 7.305 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.552e-05/0.2813, allocations: 51.41 kB / 1.227 GB, free: 7.242 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.957e-05/0.2814, allocations: 101.8 kB / 1.227 GB, free: 7.133 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.108e-05/0.2814, allocations: 29.7 kB / 1.227 GB, free: 7.098 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.941e-05/0.2815, allocations: 88.03 kB / 1.227 GB, free: 7.008 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.502e-05/0.2815, allocations: 27.8 kB / 1.227 GB, free: 6.98 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.209e-05/0.2816, allocations: 25.72 kB / 1.227 GB, free: 6.949 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001345/0.2817, allocations: 318.8 kB / 1.227 GB, free: 6.629 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.813e-05/0.2817, allocations: 15.94 kB / 1.227 GB, free: 6.613 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.194e-05/0.2818, allocations: 53.08 kB / 1.227 GB, free: 6.543 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001/0.2819, allocations: 81.08 kB / 1.227 GB, free: 6.445 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-06/0.2819, allocations: 0 / 1.227 GB, free: 6.445 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001526/0.2821, allocations: 93.5 kB / 1.228 GB, free: 6.348 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.202e-05/0.2821, allocations: 8 kB / 1.228 GB, free: 6.34 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-06/0.2821, allocations: 0 / 1.228 GB, free: 6.34 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.283e-05/0.2821, allocations: 4 kB / 1.228 GB, free: 6.336 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.454e-05/0.2822, allocations: 16 kB / 1.228 GB, free: 6.32 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.879e-06/0.2822, allocations: 8.062 kB / 1.228 GB, free: 6.312 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.193e-05/0.2823, allocations: 11.94 kB / 1.228 GB, free: 6.301 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.494e-06/0.2823, allocations: 4 kB / 1.228 GB, free: 6.297 MB / 0.9825 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 8.387e-05/0.2824, allocations: 121.8 kB / 1.228 GB, free: 6.168 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.668e-05/0.2824, allocations: 0 / 1.228 GB, free: 6.168 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.314e-05/0.2824, allocations: 7.969 kB / 1.228 GB, free: 6.164 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.2824, allocations: 4 kB / 1.228 GB, free: 6.16 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.2824, allocations: 0 / 1.228 GB, free: 6.16 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.2824, allocations: 3.938 kB / 1.228 GB, free: 6.156 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002629/0.2827, allocations: 177.7 kB / 1.228 GB, free: 5.934 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.2827, allocations: 0 / 1.228 GB, free: 5.934 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.519e-05/0.2828, allocations: 19.92 kB / 1.228 GB, free: 5.914 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.2828, allocations: 3.938 kB / 1.228 GB, free: 5.91 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.08e-05/0.2828, allocations: 8 kB / 1.228 GB, free: 5.902 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.2829, allocations: 0 / 1.228 GB, free: 5.902 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.2829, allocations: 0 / 1.228 GB, free: 5.902 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001855/0.283, allocations: 171.8 kB / 1.228 GB, free: 5.719 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.564e-05/0.2831, allocations: 85.55 kB / 1.228 GB, free: 5.617 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.244e-05/0.2831, allocations: 0 / 1.228 GB, free: 5.617 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001149/0.2833, allocations: 4 kB / 1.228 GB, free: 5.613 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.743e-05/0.2833, allocations: 20 kB / 1.228 GB, free: 5.594 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.948e-06/0.2833, allocations: 4 kB / 1.228 GB, free: 5.59 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.383e-05/0.2834, allocations: 79.22 kB / 1.228 GB, free: 5.512 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2834, allocations: 0 / 1.228 GB, free: 5.512 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000249/0.2836, allocations: 16 kB / 1.228 GB, free: 5.496 MB / 0.9825 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.0004782/0.2841, allocations: 0.709 MB / 1.229 GB, free: 4.758 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001148/0.2842, allocations: 47.95 kB / 1.229 GB, free: 4.711 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.2842, allocations: 0 / 1.229 GB, free: 4.711 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 2.83e-05/0.2843, allocations: 19.94 kB / 1.229 GB, free: 4.691 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002514/0.2845, allocations: 8.188 kB / 1.229 GB, free: 4.684 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001497/0.286, allocations: 1.52 MB / 1.231 GB, free: 3.055 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000302/0.2863, allocations: 0.6885 MB / 1.231 GB, free: 2.34 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.563e-05/0.2864, allocations: 8 kB / 1.231 GB, free: 2.332 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.342e-05/0.2864, allocations: 15.44 kB / 1.231 GB, free: 2.316 MB / 0.9825 GB Notification: Performance of SimCode: time 2.31e-07/0.2864, allocations: 0 / 1.231 GB, free: 2.316 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02306/0.3095, allocations: 1.662 MB / 1.233 GB, free: 0.7266 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.485/7.794, allocations: 6.25 kB / 1.233 GB, free: 0.7227 MB / 0.9825 GB (rm -f Buildings_11_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_11_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_11_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_11_Buildings.Media.Examples.WaterDerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Media.Examples.WaterDerivativeCheck_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_11_Buildings_Media_Examples_WaterDerivativeCheck.fmu > Buildings_11_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Media.Examples.WaterDerivativeCheck_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Media_Examples_WaterDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches