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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001707/0.001707, allocations: 97.31 kB / 19.73 MB, free: 2.117 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001412/0.001412, allocations: 220 kB / 23.03 MB, free: 4.922 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.503/1.503, allocations: 230.6 MB / 256.8 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.897/2.897, allocations: 476.8 MB / 0.7715 GB, free: 3.902 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Media.Examples.WaterDerivativeCheck,fileNamePrefix="Buildings_11_Buildings_Media_Examples_WaterDerivativeCheck",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterDerivativeCheck,fileNamePrefix="Buildings_11_Buildings_Media_Examples_WaterDerivativeCheck",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002011/0.002011, allocations: 69.47 kB / 1.118 GB, free: 39.69 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3683/0.3703, allocations: 170 MB / 1.284 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.002856/0.3732, allocations: 1.278 MB / 1.285 GB, free: 9.391 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.004517/0.3777, allocations: 3.078 MB / 1.288 GB, free: 6.301 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.272e-05/0.3777, allocations: 0 / 1.288 GB, free: 6.301 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 1.773e-05/0.3777, allocations: 4 kB / 1.288 GB, free: 6.297 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.218e-05/0.3778, allocations: 11.92 kB / 1.288 GB, free: 6.285 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000636/0.3784, allocations: 103.5 kB / 1.288 GB, free: 6.184 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 9.112e-05/0.3785, allocations: 35.84 kB / 1.288 GB, free: 6.148 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 4.315e-05/0.3786, allocations: 0 / 1.288 GB, free: 6.148 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 5.834e-05/0.3786, allocations: 27.91 kB / 1.288 GB, free: 6.121 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.67e-05/0.3787, allocations: 11.94 kB / 1.288 GB, free: 6.109 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.152e-05/0.3787, allocations: 4 kB / 1.289 GB, free: 6.105 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002418/0.379, allocations: 75.8 kB / 1.289 GB, free: 6.031 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.646e-05/0.379, allocations: 4 kB / 1.289 GB, free: 6.027 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.347e-05/0.379, allocations: 19.92 kB / 1.289 GB, free: 6.008 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001758/0.3792, allocations: 59.44 kB / 1.289 GB, free: 5.953 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.636e-06/0.3792, allocations: 4 kB / 1.289 GB, free: 5.949 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.433e-06/0.3792, allocations: 0 / 1.289 GB, free: 5.949 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 9.738e-06/0.3792, allocations: 0 / 1.289 GB, free: 5.949 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.0004059/0.3796, allocations: 278.1 kB / 1.289 GB, free: 5.648 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.3796, allocations: 12.03 kB / 1.289 GB, free: 5.637 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.348e-05/0.3797, allocations: 192 / 1.289 GB, free: 5.637 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.707e-05/0.3797, allocations: 38.73 kB / 1.289 GB, free: 5.59 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.595e-05/0.3798, allocations: 4.938 kB / 1.289 GB, free: 5.586 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000105/0.3799, allocations: 110.5 kB / 1.289 GB, free: 5.453 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.274e-05/0.3799, allocations: 4.375 kB / 1.289 GB, free: 5.449 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.252e-05/0.3799, allocations: 8.125 kB / 1.289 GB, free: 5.441 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001903/0.3801, allocations: 130.8 kB / 1.289 GB, free: 5.289 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.3801, allocations: 0 / 1.289 GB, free: 5.289 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.29e-05/0.3802, allocations: 4 kB / 1.289 GB, free: 5.285 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.3802, allocations: 0 / 1.289 GB, free: 5.285 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.336e-05/0.3802, allocations: 31.88 kB / 1.289 GB, free: 5.254 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001919/0.3804, allocations: 136.7 kB / 1.289 GB, free: 5.078 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001496/0.3806, allocations: 54.48 kB / 1.289 GB, free: 5.016 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.819e-05/0.3806, allocations: 16.8 kB / 1.289 GB, free: 4.996 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005878/0.3812, allocations: 238 kB / 1.29 GB, free: 4.742 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.971e-05/0.3812, allocations: 34.5 kB / 1.29 GB, free: 4.699 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=5): time 1.232e-06/0.3812, allocations: 0 / 1.29 GB, free: 4.699 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0005926/0.3818, allocations: 229.4 kB / 1.29 GB, free: 4.441 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.914e-05/0.3819, allocations: 51.41 kB / 1.29 GB, free: 4.379 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.181e-05/0.3819, allocations: 105.8 kB / 1.29 GB, free: 4.266 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.04e-05/0.382, allocations: 25.7 kB / 1.29 GB, free: 4.234 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.546e-05/0.382, allocations: 96.08 kB / 1.29 GB, free: 4.137 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.682e-05/0.3821, allocations: 27.75 kB / 1.29 GB, free: 4.109 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.596e-05/0.3821, allocations: 29.64 kB / 1.29 GB, free: 4.074 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001254/0.3822, allocations: 314.8 kB / 1.291 GB, free: 3.758 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.029e-05/0.3823, allocations: 15.98 kB / 1.291 GB, free: 3.742 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.697e-05/0.3823, allocations: 45.16 kB / 1.291 GB, free: 3.68 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001027/0.3824, allocations: 81.02 kB / 1.291 GB, free: 3.582 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-06/0.3824, allocations: 0 / 1.291 GB, free: 3.582 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001429/0.3826, allocations: 93.55 kB / 1.291 GB, free: 3.484 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.3826, allocations: 8 kB / 1.291 GB, free: 3.477 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.3826, allocations: 448 / 1.291 GB, free: 3.477 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.3826, allocations: 4 kB / 1.291 GB, free: 3.473 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.12e-05/0.3827, allocations: 19.98 kB / 1.291 GB, free: 3.453 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.826e-06/0.3827, allocations: 3.938 kB / 1.291 GB, free: 3.449 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.922e-05/0.3827, allocations: 8.125 kB / 1.291 GB, free: 3.441 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.947e-06/0.3827, allocations: 12 kB / 1.291 GB, free: 3.43 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.833e-05/0.3828, allocations: 115.1 kB / 1.291 GB, free: 3.309 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.053e-05/0.3828, allocations: 7.953 kB / 1.291 GB, free: 3.301 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.428e-05/0.3829, allocations: 12.06 kB / 1.291 GB, free: 3.281 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.3829, allocations: 0 / 1.291 GB, free: 3.281 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.23e-05/0.3829, allocations: 3.938 kB / 1.291 GB, free: 3.277 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.3829, allocations: 3.984 kB / 1.291 GB, free: 3.273 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002364/0.3831, allocations: 136.8 kB / 1.291 GB, free: 3.098 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.021e-06/0.3831, allocations: 0 / 1.291 GB, free: 3.098 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.849e-05/0.3832, allocations: 20.27 kB / 1.291 GB, free: 3.078 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.3832, allocations: 4 kB / 1.291 GB, free: 3.074 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.324e-06/0.3832, allocations: 0 / 1.291 GB, free: 3.074 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.3832, allocations: 0 / 1.291 GB, free: 3.074 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.3832, allocations: 3.938 kB / 1.291 GB, free: 3.07 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000204/0.3834, allocations: 175.5 kB / 1.291 GB, free: 2.883 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 2.888e-05/0.3835, allocations: 19.92 kB / 1.291 GB, free: 2.863 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.374e-05/0.3835, allocations: 0 / 1.291 GB, free: 2.863 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001017/0.3836, allocations: 3.938 kB / 1.291 GB, free: 2.859 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.216e-05/0.3836, allocations: 11.92 kB / 1.291 GB, free: 2.848 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.736e-06/0.3836, allocations: 4 kB / 1.291 GB, free: 2.844 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.19e-05/0.3837, allocations: 83.28 kB / 1.291 GB, free: 2.762 MB / 0.9825 GB Notification: Performance of sort global known variables: time 6.1e-08/0.3837, allocations: 0 / 1.291 GB, free: 2.762 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002368/0.3839, allocations: 12 kB / 1.291 GB, free: 2.75 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.0005264/0.3844, allocations: 0.7085 MB / 1.292 GB, free: 2.016 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001983/0.3846, allocations: 43.95 kB / 1.292 GB, free: 1.973 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.3846, allocations: 0 / 1.292 GB, free: 1.973 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 2.663e-05/0.3847, allocations: 16.17 kB / 1.292 GB, free: 1.957 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003102/0.385, allocations: 18.38 kB / 1.292 GB, free: 1.941 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001635/0.3866, allocations: 1.536 MB / 1.294 GB, free: 304 kB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.019e-05/0.3867, allocations: 75.28 kB / 1.294 GB, free: 208 kB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.528e-05/0.3867, allocations: 8.047 kB / 1.294 GB, free: 200 kB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.056e-05/0.3868, allocations: 11.44 kB / 1.294 GB, free: 188 kB / 0.9825 GB Notification: Performance of SimCode: time 3e-07/0.3868, allocations: 0 / 1.294 GB, free: 188 kB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02326/0.41, allocations: 1.865 MB / 1.296 GB, free: 14.47 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.63/12.04, allocations: 12.03 kB / 1.296 GB, free: 14.46 MB / 0.9981 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Media.Examples.WaterDerivativeCheck_res.mat --tempDir=temp_Buildings_11_Buildings_Media_Examples_WaterDerivativeCheck_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-08 Buildings_11_Buildings_Media_Examples_WaterDerivativeCheck.fmu > Buildings_11_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Media.Examples.WaterDerivativeCheck_res.mat","/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) [Timeout 300] "Error: Could not read variable der(cpCod) in file Buildings_11_Buildings.Media.Examples.WaterDerivativeCheck_res.mat. Warning: Get data of variable der(cpCod) from file Buildings_11_Buildings.Media.Examples.WaterDerivativeCheck_res.mat failed! Error: Could not read variable der(cvCod) in file Buildings_11_Buildings.Media.Examples.WaterDerivativeCheck_res.mat. Warning: Get data of variable der(cvCod) from file Buildings_11_Buildings.Media.Examples.WaterDerivativeCheck_res.mat failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 19.14176689297892]