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.00197/0.00197, allocations: 99.75 kB / 18.95 MB, free: 2.832 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.003956/0.003956, allocations: 215.7 kB / 22.24 MB, free: 5.105 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.481/1.481, allocations: 230.6 MB / 256 MB, free: 7.816 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 3.169/3.169, allocations: 0.49 GB / 0.7951 GB, free: 35.4 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterDerivativeCheck,fileNamePrefix="Buildings_12_Buildings_Media_Examples_WaterDerivativeCheck",fmuType="me",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.00201/0.00201, allocations: 68.12 kB / 1.154 GB, free: 25.52 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3627/0.3648, allocations: 176.1 MB / 1.326 GB, free: 1.535 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.002412/0.3672, allocations: 1.269 MB / 1.327 GB, free: 264 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.004126/0.3713, allocations: 3.091 MB / 1.33 GB, free: 13.14 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.878e-05/0.3713, allocations: 0 / 1.33 GB, free: 13.14 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 2.165e-05/0.3713, allocations: 7.984 kB / 1.33 GB, free: 13.14 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 4.361e-05/0.3714, allocations: 7.938 kB / 1.33 GB, free: 13.13 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005232/0.3719, allocations: 103.5 kB / 1.33 GB, free: 13.03 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 8.216e-05/0.372, allocations: 35.84 kB / 1.33 GB, free: 12.99 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 4.079e-05/0.372, allocations: 4 kB / 1.33 GB, free: 12.99 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 4.757e-05/0.3721, allocations: 19.92 kB / 1.33 GB, free: 12.97 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 9.457e-05/0.3722, allocations: 19.97 kB / 1.33 GB, free: 12.95 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.073e-05/0.3722, allocations: 0 / 1.33 GB, free: 12.95 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002098/0.3724, allocations: 71.83 kB / 1.33 GB, free: 12.88 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 1.922e-05/0.3724, allocations: 7.922 kB / 1.33 GB, free: 12.87 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 3.34e-05/0.3724, allocations: 15.98 kB / 1.33 GB, free: 12.86 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001798/0.3726, allocations: 68.02 kB / 1.33 GB, free: 12.79 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3726, allocations: 0 / 1.33 GB, free: 12.79 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.243e-06/0.3726, allocations: 0 / 1.33 GB, free: 12.79 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.761e-06/0.3726, allocations: 0 / 1.33 GB, free: 12.79 MB / 1.029 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.0004342/0.3731, allocations: 275.4 kB / 1.331 GB, free: 12.49 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.678e-05/0.3731, allocations: 12.03 kB / 1.331 GB, free: 12.48 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.927e-05/0.3732, allocations: 34.75 kB / 1.331 GB, free: 12.44 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001181/0.3733, allocations: 8.938 kB / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001256/0.3734, allocations: 110.5 kB / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.577e-05/0.3734, allocations: 8.312 kB / 1.331 GB, free: 12.29 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.737e-05/0.3735, allocations: 8.375 kB / 1.331 GB, free: 12.28 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002192/0.3737, allocations: 134.7 kB / 1.331 GB, free: 12.12 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.3737, allocations: 0 / 1.331 GB, free: 12.12 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.789e-05/0.3737, allocations: 4 kB / 1.331 GB, free: 12.12 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.3737, allocations: 0 / 1.331 GB, free: 12.12 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.984e-05/0.3738, allocations: 19.92 kB / 1.331 GB, free: 12.1 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002393/0.374, allocations: 136.7 kB / 1.331 GB, free: 11.93 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001343/0.3742, allocations: 50.56 kB / 1.331 GB, free: 11.87 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.851e-05/0.3742, allocations: 20.84 kB / 1.331 GB, free: 11.84 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007166/0.3749, allocations: 242.1 kB / 1.331 GB, free: 11.59 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.266e-05/0.3749, allocations: 38.56 kB / 1.331 GB, free: 11.54 MB / 1.029 GB Notification: Performance of pre-optimization done (n=5): time 1.272e-06/0.375, allocations: 0 / 1.331 GB, free: 11.54 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0007009/0.3757, allocations: 221.1 kB / 1.332 GB, free: 11.29 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.035e-05/0.3757, allocations: 55.41 kB / 1.332 GB, free: 11.22 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001119/0.3758, allocations: 105.8 kB / 1.332 GB, free: 11.11 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.135e-05/0.3758, allocations: 25.7 kB / 1.332 GB, free: 11.08 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.776e-05/0.3759, allocations: 88.09 kB / 1.332 GB, free: 10.99 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.831e-05/0.376, allocations: 31.73 kB / 1.332 GB, free: 10.96 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.623e-05/0.376, allocations: 25.72 kB / 1.332 GB, free: 10.93 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001644/0.3762, allocations: 318.8 kB / 1.332 GB, free: 10.61 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.182e-05/0.3762, allocations: 12 kB / 1.332 GB, free: 10.59 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.054e-05/0.3763, allocations: 57.08 kB / 1.332 GB, free: 10.52 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001142/0.3764, allocations: 81.2 kB / 1.332 GB, free: 10.42 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.82e-07/0.3764, allocations: 0 / 1.332 GB, free: 10.42 MB / 1.029 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001541/0.3765, allocations: 97.53 kB / 1.333 GB, free: 10.32 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.3765, allocations: 4 kB / 1.333 GB, free: 10.32 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.3766, allocations: 4 kB / 1.333 GB, free: 10.31 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.3766, allocations: 0 / 1.333 GB, free: 10.31 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.647e-05/0.3767, allocations: 20 kB / 1.333 GB, free: 10.29 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.767e-06/0.3767, allocations: 7.938 kB / 1.333 GB, free: 10.29 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.945e-05/0.3767, allocations: 3.938 kB / 1.333 GB, free: 10.28 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.402e-06/0.3767, allocations: 4 kB / 1.333 GB, free: 10.28 MB / 1.029 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 0.0001202/0.3768, allocations: 122.5 kB / 1.333 GB, free: 10.15 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.185e-05/0.3769, allocations: 7.953 kB / 1.333 GB, free: 10.14 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.766e-05/0.3769, allocations: 8.062 kB / 1.333 GB, free: 10.13 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.3769, allocations: 0 / 1.333 GB, free: 10.13 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.89e-06/0.3769, allocations: 4 kB / 1.333 GB, free: 10.13 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.3769, allocations: 3.938 kB / 1.333 GB, free: 10.12 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002731/0.3772, allocations: 144.8 kB / 1.333 GB, free: 9.941 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.3772, allocations: 3.984 kB / 1.333 GB, free: 9.938 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001008/0.3773, allocations: 12.44 kB / 1.333 GB, free: 9.926 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.3773, allocations: 3.938 kB / 1.333 GB, free: 9.922 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.488e-05/0.3773, allocations: 8 kB / 1.333 GB, free: 9.914 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.588e-06/0.3773, allocations: 4 kB / 1.333 GB, free: 9.91 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3773, allocations: 0 / 1.333 GB, free: 9.91 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002526/0.3776, allocations: 175.4 kB / 1.333 GB, free: 9.723 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.596e-05/0.3776, allocations: 4 kB / 1.333 GB, free: 9.719 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.923e-05/0.3776, allocations: 4.031 kB / 1.333 GB, free: 9.715 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001109/0.3777, allocations: 8 kB / 1.333 GB, free: 9.707 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.884e-05/0.3777, allocations: 3.938 kB / 1.333 GB, free: 9.703 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.125e-06/0.3777, allocations: 7.984 kB / 1.333 GB, free: 9.695 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.557e-05/0.3778, allocations: 79.28 kB / 1.333 GB, free: 9.617 MB / 1.029 GB Notification: Performance of sort global known variables: time 5e-08/0.3778, allocations: 0 / 1.333 GB, free: 9.617 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002388/0.378, allocations: 16 kB / 1.333 GB, free: 9.602 MB / 1.029 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.0005735/0.3786, allocations: 0.7085 MB / 1.334 GB, free: 8.867 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001338/0.3787, allocations: 44.2 kB / 1.334 GB, free: 8.824 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3787, allocations: 0 / 1.334 GB, free: 8.824 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 3.214e-05/0.3788, allocations: 23.91 kB / 1.334 GB, free: 8.801 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003499/0.3791, allocations: 15.88 kB / 1.334 GB, free: 8.785 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002073/0.3812, allocations: 1.529 MB / 1.335 GB, free: 7.145 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.61e-05/0.3813, allocations: 67.34 kB / 1.336 GB, free: 7.059 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 5.827e-05/0.3813, allocations: 15.98 kB / 1.336 GB, free: 7.043 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.808e-05/0.3814, allocations: 15.44 kB / 1.336 GB, free: 7.027 MB / 1.029 GB Notification: Performance of SimCode: time 1.082e-06/0.3814, allocations: 0 / 1.336 GB, free: 7.027 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03222/0.4136, allocations: 2.238 MB / 1.338 GB, free: 4.93 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/11.48, allocations: 5.891 kB / 1.338 GB, free: 4.926 MB / 1.029 GB " [Timeout remaining time 288] (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: 18.16210562500055]