Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_Buildings_Media_Examples_WaterDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterDerivativeCheck,fileNamePrefix="Buildings_9_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.001448/0.001453, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001712/0.001712, allocations: 193 kB / 16.14 MB, free: 6.711 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.319/1.319, allocations: 222.9 MB / 239.8 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.213/2.213, allocations: 390.2 MB / 0.6643 GB, free: 0.5586 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001543/0.001543, allocations: 63.89 kB / 0.812 GB, free: 14.77 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5619/0.5635, allocations: 140.4 MB / 0.949 GB, free: 9.09 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.002217/0.5657, allocations: 1.323 MB / 0.9503 GB, free: 8.035 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00323/0.569, allocations: 3.241 MB / 0.9535 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.294e-05/0.569, allocations: 0 / 0.9535 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.77e-05/0.569, allocations: 0 / 0.9535 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.52e-05/0.5691, allocations: 5.188 kB / 0.9535 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004675/0.5696, allocations: 94.58 kB / 0.9536 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.788e-05/0.5696, allocations: 41.02 kB / 0.9536 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.163e-05/0.5697, allocations: 2.656 kB / 0.9536 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.148e-05/0.5697, allocations: 25.73 kB / 0.9537 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.99e-05/0.5698, allocations: 9.766 kB / 0.9537 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.174e-05/0.5698, allocations: 2.062 kB / 0.9537 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002349/0.57, allocations: 73 kB / 0.9537 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.579e-05/0.5701, allocations: 14.12 kB / 0.9537 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.848e-05/0.5701, allocations: 15.62 kB / 0.9538 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001754/0.5703, allocations: 71.97 kB / 0.9538 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.5703, allocations: 1.312 kB / 0.9538 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.81e-07/0.5703, allocations: 0 / 0.9538 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.32e-06/0.5703, allocations: 3.938 kB / 0.9538 GB, free: 5.172 MB / 0.7169 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.0003167/0.5706, allocations: 352.8 kB / 0.9542 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.5707, allocations: 12.47 kB / 0.9542 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.656e-05/0.5707, allocations: 33.28 kB / 0.9542 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.012e-05/0.5708, allocations: 4.844 kB / 0.9542 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.436e-05/0.5709, allocations: 173.5 kB / 0.9544 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.127e-05/0.5709, allocations: 1.469 kB / 0.9544 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.948e-05/0.5709, allocations: 11.95 kB / 0.9544 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000119/0.5711, allocations: 57.39 kB / 0.9545 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.323e-06/0.5711, allocations: 1.062 kB / 0.9545 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.17e-05/0.5711, allocations: 5 kB / 0.9545 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.5711, allocations: 0.8125 kB / 0.9545 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.572e-05/0.5712, allocations: 23.03 kB / 0.9545 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000123/0.5713, allocations: 157.5 kB / 0.9546 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 8.69e-05/0.5714, allocations: 55.95 kB / 0.9547 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.715e-05/0.5714, allocations: 19.69 kB / 0.9547 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005677/0.572, allocations: 0.5937 MB / 0.9553 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.538e-05/0.572, allocations: 31.78 kB / 0.9553 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.102e-06/0.572, allocations: 4 kB / 0.9553 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004934/0.5725, allocations: 303.3 kB / 0.9556 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.165e-05/0.5725, allocations: 52.75 kB / 0.9557 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.254e-05/0.5726, allocations: 101.7 kB / 0.9558 GB, free: 3.051 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.398e-06/0.5726, allocations: 26.86 kB / 0.9558 GB, free: 3.02 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.601e-05/0.5726, allocations: 93.27 kB / 0.9559 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.459e-05/0.5727, allocations: 26.86 kB / 0.9559 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.478e-05/0.5727, allocations: 30.14 kB / 0.9559 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.709e-05/0.5727, allocations: 316.8 kB / 0.9562 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.694e-05/0.5728, allocations: 10.72 kB / 0.9562 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.401e-05/0.5728, allocations: 53.64 kB / 0.9563 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.105e-05/0.5729, allocations: 77.86 kB / 0.9564 GB, free: 2.422 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.5729, allocations: 1.188 kB / 0.9564 GB, free: 2.422 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001307/0.573, allocations: 97.7 kB / 0.9565 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.5731, allocations: 11.47 kB / 0.9565 GB, free: 2.352 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.5731, allocations: 2.078 kB / 0.9565 GB, free: 2.352 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/0.5731, allocations: 6.469 kB / 0.9565 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.064e-05/0.5732, allocations: 20.77 kB / 0.9565 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.855e-06/0.5732, allocations: 5.484 kB / 0.9565 GB, free: 2.34 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.921e-05/0.5732, allocations: 6.688 kB / 0.9565 GB, free: 2.336 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.885e-06/0.5733, allocations: 8.344 kB / 0.9565 GB, free: 2.332 MB / 0.7169 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 5.096e-05/0.5733, allocations: 112.3 kB / 0.9566 GB, free: 2.215 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.981e-05/0.5733, allocations: 2.656 kB / 0.9566 GB, free: 2.215 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.762e-05/0.5734, allocations: 17.3 kB / 0.9566 GB, free: 2.195 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.5734, allocations: 4 kB / 0.9566 GB, free: 2.191 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.5734, allocations: 1.375 kB / 0.9566 GB, free: 2.191 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.5734, allocations: 3.938 kB / 0.9566 GB, free: 2.188 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001879/0.5736, allocations: 174.2 kB / 0.9568 GB, free: 1.984 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.5736, allocations: 0 / 0.9568 GB, free: 1.984 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.641e-05/0.5737, allocations: 20.52 kB / 0.9568 GB, free: 1.977 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.305e-06/0.5737, allocations: 1.188 kB / 0.9568 GB, free: 1.977 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.824e-06/0.5737, allocations: 1.25 kB / 0.9568 GB, free: 1.977 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.5737, allocations: 0 / 0.9568 GB, free: 1.977 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.5737, allocations: 0 / 0.9568 GB, free: 1.977 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001422/0.5739, allocations: 185.1 kB / 0.957 GB, free: 1.809 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.114e-05/0.5739, allocations: 83.67 kB / 0.9571 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.463e-05/0.5739, allocations: 5.406 kB / 0.9571 GB, free: 1.707 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001094/0.5741, allocations: 2.406 kB / 0.9571 GB, free: 1.707 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.463e-05/0.5741, allocations: 6.5 kB / 0.9571 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.583e-06/0.5741, allocations: 1.156 kB / 0.9571 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.028e-05/0.5741, allocations: 86.05 kB / 0.9572 GB, free: 1.621 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5741, allocations: 0 / 0.9572 GB, free: 1.621 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002444/0.5744, allocations: 15.28 kB / 0.9572 GB, free: 1.617 MB / 0.7169 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.0002795/0.5746, allocations: 0.7119 MB / 0.9579 GB, free: 0.9258 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001023/0.5748, allocations: 42.08 kB / 0.9579 GB, free: 0.9102 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.5748, allocations: 4.25 kB / 0.9579 GB, free: 0.9062 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.257e-05/0.5748, allocations: 12.12 kB / 0.958 GB, free: 0.9062 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000278/0.5751, allocations: 11.34 kB / 0.958 GB, free: 0.8984 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001222/0.5763, allocations: 1.528 MB / 0.9595 GB, free: 15.41 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000244/0.5766, allocations: 0.6865 MB / 0.9601 GB, free: 14.71 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 5.559e-05/0.5766, allocations: 10.44 kB / 0.9601 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.391e-05/0.5767, allocations: 17.53 kB / 0.9602 GB, free: 14.69 MB / 0.7325 GB Notification: Performance of SimCode: time 2.61e-07/0.5767, allocations: 0 / 0.9602 GB, free: 14.69 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0461/0.6228, allocations: 1.495 MB / 0.9616 GB, free: 13.92 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002361/0.623, allocations: 200.3 kB / 0.9618 GB, free: 13.66 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.724/2.347, allocations: 0 / 0.9618 GB, free: 13.66 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Media_Examples_WaterDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Media_Examples_WaterDerivativeCheck.fmu > Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_WaterDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=1.000000 File[3]=0.002000 Error: Could not read variable der(cpCod) in file Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck_res.mat. Warning: Get data of variable der(cpCod) from file Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck_res.mat failed! Error: Could not read variable der(cvCod) in file Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck_res.mat. Warning: Get data of variable der(cvCod) from file Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck_res.mat failed! " 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