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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001351/0.001351, allocations: 108.2 kB / 17.54 MB, free: 4.746 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001459/0.001459, allocations: 186.7 kB / 20.71 MB, free: 1.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.29/1.29, allocations: 225.6 MB / 249.3 MB, free: 3.195 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.472/2.472, allocations: 476.7 MB / 0.7628 GB, free: 15.14 MB / 0.6075 GB " [Timeout remaining time 177] 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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001763/0.001763, allocations: 63.89 kB / 1.107 GB, free: 5.219 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7964/0.7981, allocations: 168.7 MB / 1.271 GB, free: 7.73 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.001907/0.8, allocations: 1.279 MB / 1.273 GB, free: 6.855 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.00275/0.8028, allocations: 3.315 MB / 1.276 GB, free: 4.453 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.814e-05/0.8028, allocations: 0 / 1.276 GB, free: 4.453 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 1.375e-05/0.8028, allocations: 1.125 kB / 1.276 GB, free: 4.453 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 4.107e-05/0.8029, allocations: 6.594 kB / 1.276 GB, free: 4.449 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004218/0.8033, allocations: 109.8 kB / 1.276 GB, free: 4.391 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 6.712e-05/0.8033, allocations: 40.55 kB / 1.276 GB, free: 4.375 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.098e-05/0.8034, allocations: 1.469 kB / 1.276 GB, free: 4.375 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.042e-05/0.8034, allocations: 16.91 kB / 1.276 GB, free: 4.371 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.82e-05/0.8035, allocations: 19.78 kB / 1.276 GB, free: 4.359 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.064e-05/0.8035, allocations: 2.406 kB / 1.276 GB, free: 4.359 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002138/0.8037, allocations: 75.38 kB / 1.276 GB, free: 4.332 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.585e-05/0.8037, allocations: 8.125 kB / 1.276 GB, free: 4.328 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 3.126e-05/0.8038, allocations: 20.92 kB / 1.276 GB, free: 4.316 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001653/0.8039, allocations: 79.52 kB / 1.276 GB, free: 4.285 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.8039, allocations: 0 / 1.276 GB, free: 4.285 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.493e-06/0.8039, allocations: 1 kB / 1.276 GB, free: 4.285 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.829e-06/0.8039, allocations: 0 / 1.276 GB, free: 4.285 MB / 0.9981 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.0002874/0.8042, allocations: 346.3 kB / 1.277 GB, free: 3.922 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.342e-05/0.8042, allocations: 9.344 kB / 1.277 GB, free: 3.922 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.641e-05/0.8043, allocations: 33 kB / 1.277 GB, free: 3.883 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.63e-05/0.8043, allocations: 10.17 kB / 1.277 GB, free: 3.879 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.245e-05/0.8044, allocations: 166.1 kB / 1.277 GB, free: 3.68 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.203e-05/0.8044, allocations: 10.06 kB / 1.277 GB, free: 3.672 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.984e-05/0.8044, allocations: 4.125 kB / 1.277 GB, free: 3.672 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001025/0.8045, allocations: 65 kB / 1.277 GB, free: 3.621 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.294e-06/0.8045, allocations: 0.9062 kB / 1.277 GB, free: 3.621 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.047e-05/0.8046, allocations: 1.594 kB / 1.277 GB, free: 3.621 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.8046, allocations: 1.25 kB / 1.277 GB, free: 3.621 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.564e-05/0.8046, allocations: 19.55 kB / 1.277 GB, free: 3.617 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001149/0.8047, allocations: 166.5 kB / 1.277 GB, free: 3.418 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 8.199e-05/0.8048, allocations: 47.31 kB / 1.277 GB, free: 3.387 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.663e-05/0.8048, allocations: 16.67 kB / 1.277 GB, free: 3.375 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004958/0.8053, allocations: 0.5955 MB / 1.278 GB, free: 2.734 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.31e-05/0.8053, allocations: 42.42 kB / 1.278 GB, free: 2.688 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=5): time 1.052e-06/0.8053, allocations: 5.188 kB / 1.278 GB, free: 2.684 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7): time 0.0004529/0.8058, allocations: 293.7 kB / 1.278 GB, free: 2.406 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.979e-05/0.8058, allocations: 52.59 kB / 1.278 GB, free: 2.344 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.508e-05/0.8059, allocations: 105.1 kB / 1.278 GB, free: 2.238 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 8.766e-06/0.8059, allocations: 26.92 kB / 1.278 GB, free: 2.207 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 2.03e-05/0.8059, allocations: 88.97 kB / 1.278 GB, free: 2.117 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.347e-05/0.8059, allocations: 25.02 kB / 1.278 GB, free: 2.098 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.328e-05/0.8059, allocations: 32.67 kB / 1.278 GB, free: 2.07 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 3.122e-05/0.806, allocations: 313.5 kB / 1.279 GB, free: 1.758 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.664e-05/0.806, allocations: 13.06 kB / 1.279 GB, free: 1.754 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.939e-05/0.806, allocations: 62.7 kB / 1.279 GB, free: 1.691 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.786e-05/0.8061, allocations: 76.52 kB / 1.279 GB, free: 1.621 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.8061, allocations: 0 / 1.279 GB, free: 1.621 MB / 0.9981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001191/0.8062, allocations: 98.45 kB / 1.279 GB, free: 1.562 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.242e-05/0.8062, allocations: 5.531 kB / 1.279 GB, free: 1.562 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.8062, allocations: 2.312 kB / 1.279 GB, free: 1.562 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.8062, allocations: 5.656 kB / 1.279 GB, free: 1.559 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.304e-05/0.8063, allocations: 23.31 kB / 1.279 GB, free: 1.555 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.032e-06/0.8063, allocations: 5.906 kB / 1.279 GB, free: 1.551 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.493e-05/0.8064, allocations: 5.938 kB / 1.279 GB, free: 1.547 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.873e-06/0.8064, allocations: 5.047 kB / 1.279 GB, free: 1.547 MB / 0.9981 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.09e-05/0.8064, allocations: 116.7 kB / 1.279 GB, free: 1.426 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.61e-05/0.8064, allocations: 2.844 kB / 1.279 GB, free: 1.426 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.388e-05/0.8065, allocations: 9.875 kB / 1.279 GB, free: 1.422 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-06/0.8065, allocations: 5.312 kB / 1.279 GB, free: 1.418 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.8065, allocations: 448 / 1.279 GB, free: 1.418 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.8065, allocations: 5.641 kB / 1.279 GB, free: 1.414 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001729/0.8066, allocations: 172.9 kB / 1.279 GB, free: 1.219 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.8066, allocations: 4 kB / 1.279 GB, free: 1.215 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.264e-05/0.8067, allocations: 16.73 kB / 1.279 GB, free: 1.215 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.8067, allocations: 4.875 kB / 1.279 GB, free: 1.211 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.593e-06/0.8067, allocations: 1.094 kB / 1.279 GB, free: 1.211 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.8067, allocations: 0 / 1.279 GB, free: 1.211 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.8067, allocations: 0 / 1.279 GB, free: 1.211 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001269/0.8069, allocations: 180.3 kB / 1.279 GB, free: 1.055 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.599e-05/0.8069, allocations: 81.77 kB / 1.279 GB, free: 0.9609 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.15e-05/0.8069, allocations: 1.719 kB / 1.279 GB, free: 0.9609 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001002/0.807, allocations: 8.203 kB / 1.279 GB, free: 0.957 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.327e-05/0.807, allocations: 12.3 kB / 1.279 GB, free: 0.9492 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.362e-06/0.807, allocations: 1.656 kB / 1.279 GB, free: 0.9492 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 1.619e-05/0.807, allocations: 77.72 kB / 1.28 GB, free: 0.875 MB / 0.9981 GB Notification: Performance of sort global known variables: time 6e-08/0.807, allocations: 0 / 1.28 GB, free: 0.875 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002251/0.8073, allocations: 18.75 kB / 1.28 GB, free: 0.8672 MB / 0.9981 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.0002656/0.8075, allocations: 0.7049 MB / 1.28 GB, free: 192 kB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001056/0.8076, allocations: 41.77 kB / 1.28 GB, free: 180 kB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.8076, allocations: 5.281 kB / 1.28 GB, free: 176 kB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 2.254e-05/0.8077, allocations: 19.03 kB / 1.28 GB, free: 168 kB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002419/0.8079, allocations: 14.81 kB / 1.28 GB, free: 160 kB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001365/0.8093, allocations: 1.523 MB / 1.282 GB, free: 14.72 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002833/0.8095, allocations: 0.6822 MB / 1.282 GB, free: 14.03 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 4.175e-05/0.8096, allocations: 9.016 kB / 1.282 GB, free: 14.02 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.758e-05/0.8096, allocations: 17.17 kB / 1.282 GB, free: 14.01 MB / 1.014 GB Notification: Performance of SimCode: time 3.9e-07/0.8096, allocations: 0 / 1.282 GB, free: 14.01 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02398/0.8336, allocations: 1.65 MB / 1.284 GB, free: 13.62 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.982/7.816, allocations: 9.5 kB / 1.284 GB, free: 13.61 MB / 1.014 GB " [Timeout remaining time 292] (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 --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] "Warning: Resultfile and Reference have different end time points! Reffile[501]=1.000000 File[2]=0.002000 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] "" Variables in the reference:time,der(hLiqSym),der(hLiqCod),der(cpSym),der(cpCod),der(cvSym),der(cvCod) Variables in the result:T,cpCod,cpSym,cvCod,cvSym,der(T),der(cpSym),der(cvSym),der(hLiqCod),der(hLiqSym),hLiqCod,hLiqSym,time [Calling sys.exit(0), Time elapsed: 13.057145704000504]