Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001331/0.001331, allocations: 116.1 kB / 17.17 MB, free: 6 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.001382/0.001382, allocations: 209.5 kB / 20.13 MB, free: 3.055 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.437/1.437, allocations: 230.6 MB / 253.5 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.87/2.87, allocations: 0.49 GB / 0.7923 GB, free: 1.336 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_Buildings_Media_Examples_WaterDerivativeCheck",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterDerivativeCheck,fileNamePrefix="Buildings_12_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.001944/0.001944, allocations: 59.91 kB / 1.149 GB, free: 15.41 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9074/0.9093, allocations: 176.1 MB / 1.321 GB, free: 24.76 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.002095/0.9114, allocations: 1.279 MB / 1.323 GB, free: 23.86 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002872/0.9143, allocations: 3.332 MB / 1.326 GB, free: 21.43 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.279e-05/0.9143, allocations: 3.031 kB / 1.326 GB, free: 21.43 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 1.573e-05/0.9144, allocations: 0 / 1.326 GB, free: 21.43 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 4.387e-05/0.9144, allocations: 7.922 kB / 1.326 GB, free: 21.43 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.000458/0.9149, allocations: 107 kB / 1.326 GB, free: 21.37 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 6.853e-05/0.9149, allocations: 35.03 kB / 1.326 GB, free: 21.36 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 3.578e-05/0.915, allocations: 2.844 kB / 1.326 GB, free: 21.36 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 3.918e-05/0.915, allocations: 28.03 kB / 1.326 GB, free: 21.34 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 6.795e-05/0.9151, allocations: 16.92 kB / 1.326 GB, free: 21.34 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 9.377e-06/0.9151, allocations: 2.656 kB / 1.326 GB, free: 21.34 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001946/0.9153, allocations: 84.44 kB / 1.326 GB, free: 21.3 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.158e-05/0.9153, allocations: 7.562 kB / 1.326 GB, free: 21.3 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 2.708e-05/0.9153, allocations: 20.69 kB / 1.326 GB, free: 21.29 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001504/0.9155, allocations: 69.14 kB / 1.326 GB, free: 21.26 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.9155, allocations: 0 / 1.326 GB, free: 21.26 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.453e-06/0.9155, allocations: 0 / 1.326 GB, free: 21.26 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.24e-06/0.9155, allocations: 0 / 1.326 GB, free: 21.26 MB / 1.061 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.0003257/0.9158, allocations: 356.6 kB / 1.327 GB, free: 20.89 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.9158, allocations: 14.14 kB / 1.327 GB, free: 20.89 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.623e-05/0.9159, allocations: 192 / 1.327 GB, free: 20.89 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.305e-05/0.9159, allocations: 40.77 kB / 1.327 GB, free: 20.84 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.199e-05/0.916, allocations: 3.594 kB / 1.327 GB, free: 20.84 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.916e-05/0.916, allocations: 163.6 kB / 1.327 GB, free: 20.65 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.073e-05/0.916, allocations: 384 / 1.327 GB, free: 20.65 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.263e-05/0.9161, allocations: 11 kB / 1.327 GB, free: 20.64 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001122/0.9162, allocations: 57.64 kB / 1.327 GB, free: 20.6 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.9162, allocations: 3.938 kB / 1.327 GB, free: 20.59 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.195e-05/0.9162, allocations: 6.5 kB / 1.327 GB, free: 20.59 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.9162, allocations: 0 / 1.327 GB, free: 20.59 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.007e-05/0.9162, allocations: 18.86 kB / 1.327 GB, free: 20.59 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001286/0.9164, allocations: 169.5 kB / 1.327 GB, free: 20.39 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 8e-05/0.9165, allocations: 47.73 kB / 1.327 GB, free: 20.36 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.585e-05/0.9165, allocations: 17.91 kB / 1.327 GB, free: 20.34 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005245/0.917, allocations: 0.6019 MB / 1.328 GB, free: 19.7 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.84e-05/0.917, allocations: 30.56 kB / 1.328 GB, free: 19.66 MB / 1.061 GB Notification: Performance of pre-optimization done (n=5): time 1.182e-06/0.917, allocations: 2.844 kB / 1.328 GB, free: 19.66 MB / 1.061 GB Notification: Performance of matching and sorting (n=7): time 0.0004936/0.9175, allocations: 294.4 kB / 1.328 GB, free: 19.38 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.209e-05/0.9175, allocations: 62.06 kB / 1.328 GB, free: 19.31 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.844e-05/0.9176, allocations: 107.9 kB / 1.328 GB, free: 19.2 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 8.696e-06/0.9176, allocations: 25.7 kB / 1.328 GB, free: 19.17 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 2.377e-05/0.9176, allocations: 90.66 kB / 1.328 GB, free: 19.08 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.401e-05/0.9176, allocations: 29.42 kB / 1.328 GB, free: 19.05 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.207e-05/0.9177, allocations: 21.72 kB / 1.328 GB, free: 19.04 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 3.809e-05/0.9177, allocations: 321.5 kB / 1.329 GB, free: 18.72 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.551e-05/0.9177, allocations: 15.94 kB / 1.329 GB, free: 18.71 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.143e-05/0.9178, allocations: 50.94 kB / 1.329 GB, free: 18.66 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.548e-05/0.9178, allocations: 77.83 kB / 1.329 GB, free: 18.59 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.9178, allocations: 2.719 kB / 1.329 GB, free: 18.59 MB / 1.061 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001108/0.9179, allocations: 92.86 kB / 1.329 GB, free: 18.53 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.353e-05/0.918, allocations: 5.312 kB / 1.329 GB, free: 18.53 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.918, allocations: 3.281 kB / 1.329 GB, free: 18.53 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.918, allocations: 2.375 kB / 1.329 GB, free: 18.53 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.134e-05/0.9181, allocations: 16.59 kB / 1.329 GB, free: 18.53 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.325e-06/0.9181, allocations: 10.72 kB / 1.329 GB, free: 18.52 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.649e-05/0.9181, allocations: 10.72 kB / 1.329 GB, free: 18.52 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.823e-06/0.9181, allocations: 10.12 kB / 1.329 GB, free: 18.51 MB / 1.061 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 4.982e-05/0.9182, allocations: 112.6 kB / 1.329 GB, free: 18.39 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.732e-05/0.9182, allocations: 6.891 kB / 1.329 GB, free: 18.39 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.651e-05/0.9182, allocations: 10.78 kB / 1.329 GB, free: 18.38 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.9182, allocations: 0 / 1.329 GB, free: 18.38 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.9182, allocations: 3.938 kB / 1.329 GB, free: 18.38 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.9182, allocations: 0 / 1.329 GB, free: 18.38 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001877/0.9184, allocations: 179.9 kB / 1.329 GB, free: 18.18 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.9184, allocations: 4.438 kB / 1.329 GB, free: 18.17 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.993e-05/0.9185, allocations: 13.12 kB / 1.329 GB, free: 18.17 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.9185, allocations: 0 / 1.329 GB, free: 18.17 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.624e-06/0.9185, allocations: 10.81 kB / 1.329 GB, free: 18.16 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.584e-06/0.9185, allocations: 7.172 kB / 1.329 GB, free: 18.16 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.9185, allocations: 3.938 kB / 1.329 GB, free: 18.16 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001385/0.9186, allocations: 170.7 kB / 1.329 GB, free: 18.01 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 4.473e-05/0.9187, allocations: 79.55 kB / 1.33 GB, free: 17.91 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.497e-05/0.9187, allocations: 5.844 kB / 1.33 GB, free: 17.91 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001059/0.9188, allocations: 5.281 kB / 1.33 GB, free: 17.91 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.777e-05/0.9188, allocations: 6.844 kB / 1.33 GB, free: 17.91 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.013e-06/0.9188, allocations: 5.625 kB / 1.33 GB, free: 17.9 MB / 1.061 GB Notification: Performance of sorting global known variables: time 2.044e-05/0.9189, allocations: 80.72 kB / 1.33 GB, free: 17.83 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.9189, allocations: 0.5938 kB / 1.33 GB, free: 17.83 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002395/0.9191, allocations: 13.97 kB / 1.33 GB, free: 17.82 MB / 1.061 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.0003175/0.9194, allocations: 0.7091 MB / 1.33 GB, free: 17.14 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001285/0.9195, allocations: 43.75 kB / 1.33 GB, free: 17.13 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.9195, allocations: 0.9062 kB / 1.33 GB, free: 17.13 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 2.738e-05/0.9196, allocations: 14 kB / 1.33 GB, free: 17.13 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002918/0.9199, allocations: 13.53 kB / 1.33 GB, free: 17.12 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001156/0.921, allocations: 1.543 MB / 1.332 GB, free: 15.66 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001091/0.9211, allocations: 0.6847 MB / 1.333 GB, free: 14.97 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 4.266e-05/0.9212, allocations: 7.469 kB / 1.333 GB, free: 14.96 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.606e-05/0.9212, allocations: 18.88 kB / 1.333 GB, free: 14.95 MB / 1.061 GB Notification: Performance of SimCode: time 2.91e-07/0.9212, allocations: 0 / 1.333 GB, free: 14.95 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01951/0.9407, allocations: 1.698 MB / 1.334 GB, free: 14.52 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.887/8.828, allocations: 7.625 kB / 1.334 GB, free: 14.52 MB / 1.061 GB " [Timeout remaining time 291] (rm -f Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck_res.mat --tempDir=temp_Buildings_12_Buildings_Media_Examples_WaterDerivativeCheck_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-08 Buildings_12_Buildings_Media_Examples_WaterDerivativeCheck.fmu > Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Media_Examples_WaterDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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_12_Buildings.Media.Examples.WaterDerivativeCheck_res.mat. Warning: Get data of variable der(cpCod) from file Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck_res.mat failed! Error: Could not read variable der(cvCod) in file Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck_res.mat. Warning: Get data of variable der(cvCod) from file Buildings_12_Buildings.Media.Examples.WaterDerivativeCheck_res.mat failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.102884879044723]