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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.0009938/0.0009984, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.008194/0.008194, allocations: 168.6 kB / 16.26 MB, free: 6.652 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.301/1.301, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.445/2.445, allocations: 462.7 MB / 0.7364 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003328/0.0003328, allocations: 18.12 kB / 0.9029 GB, free: 36.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2482/0.2485, allocations: 159.6 MB / 1.059 GB, free: 4.93 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.00106/0.2496, allocations: 1.002 MB / 1.06 GB, free: 3.918 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003241/0.2529, allocations: 3.198 MB / 1.063 GB, free: 0.7031 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.637e-05/0.2529, allocations: 0 / 1.063 GB, free: 0.7031 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.231e-05/0.2529, allocations: 0 / 1.063 GB, free: 0.7031 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.848e-05/0.253, allocations: 7.875 kB / 1.063 GB, free: 0.6953 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004113/0.2534, allocations: 99.61 kB / 1.063 GB, free: 0.5977 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.865e-05/0.2534, allocations: 39.91 kB / 1.063 GB, free: 0.5586 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 2.736e-05/0.2535, allocations: 0 / 1.063 GB, free: 0.5586 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.957e-05/0.2535, allocations: 19.92 kB / 1.063 GB, free: 0.5391 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.281e-05/0.2536, allocations: 11.98 kB / 1.063 GB, free: 0.5273 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 9.858e-06/0.2536, allocations: 4 kB / 1.063 GB, free: 0.5234 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002032/0.2538, allocations: 79.73 kB / 1.063 GB, free: 456 kB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.326e-05/0.2538, allocations: 7.922 kB / 1.063 GB, free: 448 kB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.698e-05/0.2539, allocations: 49.62 kB / 1.063 GB, free: 392 kB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001436/0.254, allocations: 68.14 kB / 1.063 GB, free: 324 kB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.866e-06/0.254, allocations: 0 / 1.063 GB, free: 324 kB / 0.8106 GB Notification: Performance of FrontEnd: time 1.172e-06/0.254, allocations: 0 / 1.063 GB, free: 324 kB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.327e-06/0.254, allocations: 0 / 1.063 GB, free: 324 kB / 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.0003313/0.2544, allocations: 335.5 kB / 1.064 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.2544, allocations: 11.97 kB / 1.064 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.341e-05/0.2545, allocations: 34.75 kB / 1.064 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.96e-05/0.2545, allocations: 12.83 kB / 1.064 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.425e-05/0.2547, allocations: 172.3 kB / 1.064 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.159e-05/0.2547, allocations: 8.312 kB / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.114e-05/0.2547, allocations: 4.375 kB / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001143/0.2548, allocations: 61.59 kB / 1.064 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.633e-06/0.2548, allocations: 4 kB / 1.064 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.197e-06/0.2548, allocations: 0 / 1.064 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-06/0.2548, allocations: 0 / 1.064 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.571e-05/0.2549, allocations: 19.98 kB / 1.064 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001488/0.2551, allocations: 161.7 kB / 1.064 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 8.337e-05/0.2552, allocations: 58.5 kB / 1.064 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.788e-05/0.2552, allocations: 20.84 kB / 1.064 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006151/0.2558, allocations: 0.5948 MB / 1.065 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.96e-05/0.2558, allocations: 30.56 kB / 1.065 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=5): time 1.062e-06/0.2558, allocations: 4 kB / 1.065 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0005064/0.2564, allocations: 298.2 kB / 1.065 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.256e-05/0.2564, allocations: 51.41 kB / 1.065 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.198e-05/0.2565, allocations: 109.8 kB / 1.065 GB, free: 14 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.462e-05/0.2565, allocations: 25.7 kB / 1.065 GB, free: 13.97 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.628e-05/0.2566, allocations: 84.05 kB / 1.065 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.122e-05/0.2566, allocations: 31.55 kB / 1.065 GB, free: 13.85 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.584e-05/0.2566, allocations: 25.66 kB / 1.065 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.245e-05/0.2567, allocations: 314.8 kB / 1.066 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.666e-05/0.2567, allocations: 19.92 kB / 1.066 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.477e-05/0.2568, allocations: 53.08 kB / 1.066 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.767e-05/0.2569, allocations: 73.09 kB / 1.066 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.22e-07/0.2569, allocations: 0 / 1.066 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001243/0.257, allocations: 93.55 kB / 1.066 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.989e-05/0.257, allocations: 8 kB / 1.066 GB, free: 13.22 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.2571, allocations: 0 / 1.066 GB, free: 13.22 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.2571, allocations: 8.109 kB / 1.066 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.897e-05/0.2571, allocations: 23.94 kB / 1.066 GB, free: 13.19 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.2572, allocations: 0 / 1.066 GB, free: 13.19 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.509e-05/0.2572, allocations: 7.938 kB / 1.066 GB, free: 13.18 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.592e-06/0.2572, allocations: 4 kB / 1.066 GB, free: 13.18 MB / 0.8262 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 6.483e-05/0.2573, allocations: 109.8 kB / 1.066 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.689e-05/0.2573, allocations: 7.984 kB / 1.066 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.591e-05/0.2573, allocations: 7.969 kB / 1.066 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.307e-06/0.2574, allocations: 4 kB / 1.066 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.2574, allocations: 4 kB / 1.066 GB, free: 13.03 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.2574, allocations: 7.875 kB / 1.066 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002155/0.2576, allocations: 177.7 kB / 1.066 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.2576, allocations: 0 / 1.066 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.555e-05/0.2577, allocations: 12 kB / 1.066 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.2577, allocations: 3.984 kB / 1.066 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.372e-06/0.2577, allocations: 0 / 1.066 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.2577, allocations: 4 kB / 1.066 GB, free: 12.78 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.2577, allocations: 0 / 1.066 GB, free: 12.78 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001565/0.2579, allocations: 171.8 kB / 1.066 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.097e-05/0.2579, allocations: 89.14 kB / 1.066 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.216e-05/0.2579, allocations: 0 / 1.066 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.828e-05/0.2581, allocations: 8 kB / 1.066 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.617e-05/0.2581, allocations: 11.86 kB / 1.066 GB, free: 12.47 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.075e-06/0.2581, allocations: 4 kB / 1.066 GB, free: 12.47 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.034e-05/0.2581, allocations: 83.59 kB / 1.067 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.2581, allocations: 0 / 1.067 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002197/0.2583, allocations: 12 kB / 1.067 GB, free: 12.38 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.0003945/0.2587, allocations: 0.7126 MB / 1.067 GB, free: 11.63 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 9.423e-05/0.2589, allocations: 43.91 kB / 1.067 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.2589, allocations: 4.188 kB / 1.067 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.885e-05/0.2589, allocations: 19.98 kB / 1.067 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002472/0.2592, allocations: 14.41 kB / 1.067 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001306/0.2605, allocations: 1.575 MB / 1.069 GB, free: 9.867 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002289/0.2607, allocations: 0.6848 MB / 1.07 GB, free: 9.156 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.176e-05/0.2608, allocations: 11.98 kB / 1.07 GB, free: 9.145 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.185e-05/0.2608, allocations: 15.44 kB / 1.07 GB, free: 9.129 MB / 0.8262 GB Notification: Performance of SimCode: time 2.01e-07/0.2608, allocations: 0 / 1.07 GB, free: 9.129 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2256/0.4864, allocations: 1.443 MB / 1.071 GB, free: 7.809 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002931/0.4868, allocations: 205.8 kB / 1.071 GB, free: 7.547 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.724/2.211, allocations: 0 / 1.071 GB, free: 7.547 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