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) 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.1.0-maint.11.x/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00165/0.00165, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001832/0.001832, allocations: 197.1 kB / 16.53 MB, free: 6.391 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.285/1.285, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.507/2.507, allocations: 469.8 MB / 0.7424 GB, free: 7.434 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001702/0.001702, allocations: 63.45 kB / 0.9086 GB, free: 34.27 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2419/0.2436, allocations: 159.2 MB / 1.064 GB, free: 14.24 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.002189/0.2458, allocations: 1.261 MB / 1.065 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00359/0.2494, allocations: 3.262 MB / 1.068 GB, free: 9.688 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.19e-05/0.2494, allocations: 7.938 kB / 1.068 GB, free: 9.68 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.535e-05/0.2495, allocations: 0 / 1.068 GB, free: 9.68 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 3.581e-05/0.2495, allocations: 7.938 kB / 1.068 GB, free: 9.672 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004476/0.25, allocations: 107.5 kB / 1.069 GB, free: 9.566 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.099e-05/0.25, allocations: 31.92 kB / 1.069 GB, free: 9.535 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.107e-05/0.2501, allocations: 0 / 1.069 GB, free: 9.535 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 4.375e-05/0.2501, allocations: 27.86 kB / 1.069 GB, free: 9.508 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.826e-05/0.2502, allocations: 11.97 kB / 1.069 GB, free: 9.496 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.105e-05/0.2502, allocations: 7.938 kB / 1.069 GB, free: 9.488 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002167/0.2504, allocations: 79.81 kB / 1.069 GB, free: 9.41 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.664e-05/0.2504, allocations: 11.92 kB / 1.069 GB, free: 9.398 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.819e-05/0.2505, allocations: 15.92 kB / 1.069 GB, free: 9.383 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001603/0.2506, allocations: 68.14 kB / 1.069 GB, free: 9.316 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.2507, allocations: 0 / 1.069 GB, free: 9.316 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.452e-06/0.2507, allocations: 0 / 1.069 GB, free: 9.316 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.007e-06/0.2507, allocations: 0 / 1.069 GB, free: 9.316 MB / 0.8262 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.0003878/0.2511, allocations: 351.5 kB / 1.069 GB, free: 8.926 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.39e-05/0.2511, allocations: 8.031 kB / 1.069 GB, free: 8.918 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.749e-05/0.2511, allocations: 38.69 kB / 1.069 GB, free: 8.871 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.866e-05/0.2512, allocations: 8.844 kB / 1.069 GB, free: 8.863 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001182/0.2514, allocations: 172.3 kB / 1.069 GB, free: 8.656 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.103e-05/0.2514, allocations: 4.375 kB / 1.069 GB, free: 8.652 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.961e-05/0.2514, allocations: 4.375 kB / 1.069 GB, free: 8.648 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001179/0.2515, allocations: 57.61 kB / 1.069 GB, free: 8.586 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.241e-06/0.2515, allocations: 0 / 1.069 GB, free: 8.586 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.267e-06/0.2515, allocations: 0 / 1.069 GB, free: 8.586 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.269e-06/0.2516, allocations: 4 kB / 1.069 GB, free: 8.582 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.821e-05/0.2516, allocations: 15.98 kB / 1.069 GB, free: 8.566 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001784/0.2518, allocations: 173.6 kB / 1.07 GB, free: 8.348 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 8.786e-05/0.2519, allocations: 50.56 kB / 1.07 GB, free: 8.289 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.713e-05/0.2519, allocations: 16.84 kB / 1.07 GB, free: 8.27 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006488/0.2526, allocations: 0.5946 MB / 1.07 GB, free: 7.566 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.588e-05/0.2526, allocations: 34.56 kB / 1.07 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=5): time 9.72e-07/0.2526, allocations: 0 / 1.07 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0005114/0.2531, allocations: 306.8 kB / 1.071 GB, free: 7.172 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.166e-05/0.2532, allocations: 51.41 kB / 1.071 GB, free: 7.109 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.597e-05/0.2533, allocations: 105.8 kB / 1.071 GB, free: 6.996 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.666e-05/0.2533, allocations: 25.7 kB / 1.071 GB, free: 6.965 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.638e-05/0.2533, allocations: 92.05 kB / 1.071 GB, free: 6.871 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.789e-05/0.2534, allocations: 23.56 kB / 1.071 GB, free: 6.848 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.465e-05/0.2534, allocations: 29.7 kB / 1.071 GB, free: 6.812 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001179/0.2535, allocations: 318.8 kB / 1.071 GB, free: 6.492 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.943e-05/0.2536, allocations: 15.92 kB / 1.071 GB, free: 6.477 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.592e-05/0.2536, allocations: 57.2 kB / 1.071 GB, free: 6.402 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.359e-05/0.2537, allocations: 73.03 kB / 1.071 GB, free: 6.312 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.01e-07/0.2537, allocations: 0 / 1.071 GB, free: 6.312 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001323/0.2539, allocations: 97.72 kB / 1.071 GB, free: 6.211 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.104e-05/0.2539, allocations: 12.12 kB / 1.071 GB, free: 6.199 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.2539, allocations: 0 / 1.071 GB, free: 6.199 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.211e-05/0.2539, allocations: 7.938 kB / 1.071 GB, free: 6.191 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.218e-05/0.254, allocations: 19.98 kB / 1.071 GB, free: 6.172 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.254, allocations: 0 / 1.071 GB, free: 6.172 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.445e-05/0.254, allocations: 7.938 kB / 1.072 GB, free: 6.164 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.753e-06/0.2541, allocations: 4 kB / 1.072 GB, free: 6.16 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 8.342e-05/0.2541, allocations: 117.8 kB / 1.072 GB, free: 6.035 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.599e-05/0.2542, allocations: 3.906 kB / 1.072 GB, free: 6.031 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.805e-05/0.2542, allocations: 19.95 kB / 1.072 GB, free: 6.008 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.2542, allocations: 0 / 1.072 GB, free: 6.008 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.2542, allocations: 0 / 1.072 GB, free: 6.008 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.2542, allocations: 3.938 kB / 1.072 GB, free: 6.004 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002327/0.2545, allocations: 173.7 kB / 1.072 GB, free: 5.785 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.2545, allocations: 0 / 1.072 GB, free: 5.785 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.697e-05/0.2546, allocations: 12 kB / 1.072 GB, free: 5.773 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.2546, allocations: 4 kB / 1.072 GB, free: 5.77 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.191e-06/0.2546, allocations: 0 / 1.072 GB, free: 5.77 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.2546, allocations: 3.984 kB / 1.072 GB, free: 5.766 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.2546, allocations: 0 / 1.072 GB, free: 5.766 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001733/0.2548, allocations: 175.4 kB / 1.072 GB, free: 5.578 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.745e-05/0.2548, allocations: 89.05 kB / 1.072 GB, free: 5.473 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.37e-05/0.2548, allocations: 4 kB / 1.072 GB, free: 5.469 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.593e-05/0.2549, allocations: 4 kB / 1.072 GB, free: 5.465 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.57e-05/0.255, allocations: 7.922 kB / 1.072 GB, free: 5.457 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.963e-06/0.255, allocations: 4 kB / 1.072 GB, free: 5.453 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.33e-05/0.255, allocations: 87.22 kB / 1.072 GB, free: 5.367 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.255, allocations: 4 kB / 1.072 GB, free: 5.363 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002195/0.2553, allocations: 8 kB / 1.072 GB, free: 5.355 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.000444/0.2557, allocations: 0.7007 MB / 1.073 GB, free: 4.625 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001161/0.2558, allocations: 52.02 kB / 1.073 GB, free: 4.574 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.2558, allocations: 0 / 1.073 GB, free: 4.574 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.772e-05/0.2559, allocations: 19.92 kB / 1.073 GB, free: 4.555 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002361/0.2561, allocations: 12.16 kB / 1.073 GB, free: 4.543 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001401/0.2575, allocations: 1.532 MB / 1.074 GB, free: 2.902 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002752/0.2578, allocations: 0.6807 MB / 1.075 GB, free: 2.195 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.947e-05/0.2579, allocations: 8 kB / 1.075 GB, free: 2.188 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.637e-05/0.2579, allocations: 19.42 kB / 1.075 GB, free: 2.168 MB / 0.8262 GB Notification: Performance of SimCode: time 2.1e-07/0.2579, allocations: 0 / 1.075 GB, free: 2.168 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.192/2.45, allocations: 1.62 MB / 1.077 GB, free: 0.6055 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.31/15.76, allocations: 7.984 kB / 1.077 GB, free: 0.5977 MB / 0.8262 GB (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) 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) "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_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! " 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