Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Media_Examples_WaterDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterDerivativeCheck,fileNamePrefix="Buildings_latest_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.002035/0.002035, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.006805/0.006805, allocations: 195.5 kB / 16.26 MB, free: 6.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.344/2.344, allocations: 222.9 MB / 239.9 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 4.118/4.118, allocations: 461.9 MB / 0.7343 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001397/0.001397, allocations: 67.25 kB / 0.8987 GB, free: 37.07 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3393/0.3407, allocations: 157.4 MB / 1.052 GB, free: 8.711 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.002915/0.3437, allocations: 1.339 MB / 1.054 GB, free: 7.359 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.004092/0.3478, allocations: 3.225 MB / 1.057 GB, free: 4.117 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.408e-05/0.3478, allocations: 4 kB / 1.057 GB, free: 4.113 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.638e-05/0.3479, allocations: 3.938 kB / 1.057 GB, free: 4.109 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.533e-05/0.348, allocations: 7.984 kB / 1.057 GB, free: 4.102 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006199/0.3486, allocations: 95.61 kB / 1.057 GB, free: 4.008 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.262e-05/0.3487, allocations: 35.92 kB / 1.057 GB, free: 3.973 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.078e-05/0.3487, allocations: 7.922 kB / 1.057 GB, free: 3.965 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 5.073e-05/0.3488, allocations: 19.92 kB / 1.057 GB, free: 3.945 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.211e-05/0.3489, allocations: 11.98 kB / 1.057 GB, free: 3.934 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.205e-05/0.3489, allocations: 8 kB / 1.057 GB, free: 3.926 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002621/0.3491, allocations: 79.8 kB / 1.057 GB, free: 3.848 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.078e-05/0.3492, allocations: 15.92 kB / 1.057 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.737e-05/0.3492, allocations: 11.94 kB / 1.057 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002018/0.3494, allocations: 68.12 kB / 1.057 GB, free: 3.754 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.3494, allocations: 4 kB / 1.057 GB, free: 3.75 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.376e-06/0.3495, allocations: 0 / 1.057 GB, free: 3.75 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.085e-05/0.3495, allocations: 7.938 kB / 1.057 GB, free: 3.742 MB / 0.8106 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.0004657/0.3499, allocations: 339.5 kB / 1.058 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.33e-05/0.35, allocations: 8.625 kB / 1.058 GB, free: 3.355 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.41e-05/0.3501, allocations: 42.73 kB / 1.058 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001064/0.3502, allocations: 4.844 kB / 1.058 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001238/0.3503, allocations: 168.3 kB / 1.058 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.015e-05/0.3503, allocations: 384 / 1.058 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.271e-05/0.3503, allocations: 8.375 kB / 1.058 GB, free: 3.09 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001417/0.3505, allocations: 53.61 kB / 1.058 GB, free: 3.031 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.298e-06/0.3505, allocations: 0 / 1.058 GB, free: 3.031 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.348e-05/0.3505, allocations: 4 kB / 1.058 GB, free: 3.027 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.681e-06/0.3505, allocations: 8 kB / 1.058 GB, free: 3.02 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.816e-05/0.3506, allocations: 23.89 kB / 1.058 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001903/0.3508, allocations: 161.7 kB / 1.058 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 9.702e-05/0.3509, allocations: 50.56 kB / 1.058 GB, free: 2.73 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.22e-05/0.351, allocations: 16.84 kB / 1.058 GB, free: 2.711 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007663/0.3517, allocations: 0.5946 MB / 1.059 GB, free: 2.008 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3e-05/0.3518, allocations: 42.5 kB / 1.059 GB, free: 1.957 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=5): time 1.102e-06/0.3518, allocations: 0 / 1.059 GB, free: 1.957 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0006131/0.3524, allocations: 298.5 kB / 1.059 GB, free: 1.613 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.985e-05/0.3524, allocations: 51.41 kB / 1.059 GB, free: 1.551 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.46e-05/0.3525, allocations: 101.8 kB / 1.059 GB, free: 1.441 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.752e-05/0.3525, allocations: 33.7 kB / 1.059 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.686e-05/0.3526, allocations: 88.05 kB / 1.059 GB, free: 1.312 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.198e-05/0.3526, allocations: 31.55 kB / 1.059 GB, free: 1.281 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.114e-05/0.3527, allocations: 29.66 kB / 1.059 GB, free: 1.246 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001036/0.3528, allocations: 318.8 kB / 1.06 GB, free: 0.9258 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.677e-05/0.3528, allocations: 12 kB / 1.06 GB, free: 0.9141 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.871e-05/0.3529, allocations: 61.08 kB / 1.06 GB, free: 0.8359 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.437e-05/0.353, allocations: 77.19 kB / 1.06 GB, free: 0.7422 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.353, allocations: 448 / 1.06 GB, free: 0.7422 MB / 0.8106 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001428/0.3531, allocations: 97.55 kB / 1.06 GB, free: 0.6406 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.3531, allocations: 5.406 kB / 1.06 GB, free: 0.6367 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.3532, allocations: 0 / 1.06 GB, free: 0.6367 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.3532, allocations: 4 kB / 1.06 GB, free: 0.6328 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.369e-05/0.3533, allocations: 20 kB / 1.06 GB, free: 0.6133 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/0.3533, allocations: 4 kB / 1.06 GB, free: 0.6094 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.28e-05/0.3533, allocations: 11.92 kB / 1.06 GB, free: 0.5977 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.396e-06/0.3533, allocations: 4 kB / 1.06 GB, free: 0.5938 MB / 0.8106 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.648e-05/0.3534, allocations: 121.9 kB / 1.06 GB, free: 476 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.076e-05/0.3535, allocations: 7.906 kB / 1.06 GB, free: 468 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.29e-05/0.3535, allocations: 7.969 kB / 1.06 GB, free: 456 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.3535, allocations: 0 / 1.06 GB, free: 456 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.3535, allocations: 0 / 1.06 GB, free: 456 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.399e-06/0.3535, allocations: 3.938 kB / 1.06 GB, free: 452 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000239/0.3538, allocations: 169.7 kB / 1.06 GB, free: 232 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.3538, allocations: 0 / 1.06 GB, free: 232 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.771e-05/0.3539, allocations: 23.98 kB / 1.06 GB, free: 208 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.995e-06/0.3539, allocations: 0 / 1.06 GB, free: 208 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.595e-06/0.3539, allocations: 0 / 1.06 GB, free: 208 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.3539, allocations: 4 kB / 1.06 GB, free: 204 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.3539, allocations: 0 / 1.06 GB, free: 204 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001807/0.3541, allocations: 179.4 kB / 1.06 GB, free: 8 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.801e-05/0.3542, allocations: 81.02 kB / 1.06 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.425e-05/0.3542, allocations: 0 / 1.06 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001077/0.3543, allocations: 12.03 kB / 1.06 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.093e-05/0.3543, allocations: 11.88 kB / 1.06 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.56e-06/0.3543, allocations: 4 kB / 1.06 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.384e-05/0.3544, allocations: 79.28 kB / 1.061 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3544, allocations: 0 / 1.061 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002407/0.3546, allocations: 12 kB / 1.061 GB, free: 15.79 MB / 0.8262 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.0004533/0.3551, allocations: 0.7128 MB / 1.061 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000123/0.3552, allocations: 48.03 kB / 1.061 GB, free: 15 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3552, allocations: 0 / 1.061 GB, free: 15 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 3.066e-05/0.3553, allocations: 20.17 kB / 1.061 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00031/0.3556, allocations: 11.94 kB / 1.061 GB, free: 14.97 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00143/0.357, allocations: 1.532 MB / 1.063 GB, free: 13.33 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002553/0.3573, allocations: 0.6846 MB / 1.063 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.497e-05/0.3573, allocations: 7.984 kB / 1.064 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.8e-05/0.3574, allocations: 15.44 kB / 1.064 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.3574, allocations: 0 / 1.064 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4468/0.8042, allocations: 1.546 MB / 1.065 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003933/0.8047, allocations: 198.4 kB / 1.065 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.827/4.632, allocations: 5.562 kB / 1.065 GB, free: 10.9 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Media_Examples_WaterDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Media_Examples_WaterDerivativeCheck.fmu > Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_WaterDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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_latest_Buildings.Media.Examples.WaterDerivativeCheck_res.mat. Warning: Get data of variable der(cpCod) from file Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck_res.mat failed! Error: Could not read variable der(cvCod) in file Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck_res.mat. Warning: Get data of variable der(cvCod) from file Buildings_latest_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