Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Media.Examples.AirDerivativeCheck.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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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.AirDerivativeCheck,fileNamePrefix="Buildings_10_Buildings_Media_Examples_AirDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.AirDerivativeCheck,fileNamePrefix="Buildings_10_Buildings_Media_Examples_AirDerivativeCheck",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.00191/0.00191, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00226/0.00226, allocations: 191.6 kB / 16.13 MB, free: 6.691 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.33/1.33, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.456/2.456, allocations: 437 MB / 0.7099 GB, free: 5.414 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001355, allocations: 63.88 kB / 0.8686 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5721/0.5734, allocations: 151.6 MB / 1.017 GB, free: 2.766 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirDerivativeCheck): time 0.002679/0.5761, allocations: 1.399 MB / 1.018 GB, free: 1.359 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.1428/0.719, allocations: 145.8 MB / 1.16 GB, free: 15 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.443e-05/0.7191, allocations: 0 / 1.16 GB, free: 15 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 4.102e-05/0.7191, allocations: 4 kB / 1.16 GB, free: 15 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0001042/0.7193, allocations: 15.91 kB / 1.16 GB, free: 14.98 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.001167/0.7204, allocations: 302.8 kB / 1.161 GB, free: 14.68 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001224/0.7206, allocations: 95.67 kB / 1.161 GB, free: 14.59 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 3.946e-05/0.7206, allocations: 0 / 1.161 GB, free: 14.59 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 4.877e-05/0.7207, allocations: 23.98 kB / 1.161 GB, free: 14.57 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 9.637e-05/0.7208, allocations: 35.83 kB / 1.161 GB, free: 14.53 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.643e-05/0.7208, allocations: 4 kB / 1.161 GB, free: 14.53 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001371/0.7222, allocations: 0.4909 MB / 1.161 GB, free: 14.04 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 6.515e-05/0.7223, allocations: 15.97 kB / 1.161 GB, free: 14.02 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 5.613e-05/0.7223, allocations: 27.86 kB / 1.161 GB, free: 13.99 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0005026/0.7228, allocations: 185.8 kB / 1.162 GB, free: 13.81 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.7229, allocations: 0 / 1.162 GB, free: 13.81 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.152e-06/0.7229, allocations: 4 kB / 1.162 GB, free: 13.81 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.38e-06/0.7229, allocations: 0 / 1.162 GB, free: 13.81 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0006207/0.7235, allocations: 391.4 kB / 1.162 GB, free: 13.38 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.221e-05/0.7236, allocations: 8.031 kB / 1.162 GB, free: 13.37 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.598e-05/0.7236, allocations: 38.75 kB / 1.162 GB, free: 13.32 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006401/0.7243, allocations: 32.81 kB / 1.162 GB, free: 13.29 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001494/0.7245, allocations: 180.1 kB / 1.162 GB, free: 13.08 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.851e-05/0.7245, allocations: 8 kB / 1.162 GB, free: 13.07 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.094e-05/0.7245, allocations: 15.91 kB / 1.162 GB, free: 13.05 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002474/0.7248, allocations: 77.59 kB / 1.162 GB, free: 12.97 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.7248, allocations: 3.984 kB / 1.162 GB, free: 12.97 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.009e-05/0.7249, allocations: 0 / 1.162 GB, free: 12.97 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.7249, allocations: 4 kB / 1.162 GB, free: 12.96 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001362/0.725, allocations: 43.95 kB / 1.162 GB, free: 12.92 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002812/0.7253, allocations: 197.4 kB / 1.163 GB, free: 12.68 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002602/0.7256, allocations: 94.62 kB / 1.163 GB, free: 12.58 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.071e-05/0.7257, allocations: 32.84 kB / 1.163 GB, free: 12.54 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003102/0.726, allocations: 174.2 kB / 1.163 GB, free: 12.34 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.269e-05/0.726, allocations: 34.56 kB / 1.163 GB, free: 12.29 MB / 0.92 GB Notification: Performance of pre-optimization done (n=12): time 1.693e-06/0.7261, allocations: 0 / 1.163 GB, free: 12.29 MB / 0.92 GB Notification: Performance of matching and sorting (n=19): time 0.001891/0.728, allocations: 0.5506 MB / 1.163 GB, free: 11.69 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.933e-05/0.728, allocations: 55.41 kB / 1.163 GB, free: 11.62 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.815e-05/0.7281, allocations: 101.8 kB / 1.164 GB, free: 11.52 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 3.116e-05/0.7281, allocations: 29.7 kB / 1.164 GB, free: 11.48 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 3.578e-05/0.7282, allocations: 84.52 kB / 1.164 GB, free: 11.39 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 8.77e-05/0.7283, allocations: 67 kB / 1.164 GB, free: 11.33 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.94e-05/0.7284, allocations: 37.7 kB / 1.164 GB, free: 11.29 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001328/0.7285, allocations: 318.8 kB / 1.164 GB, free: 10.96 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001098/0.7286, allocations: 39.97 kB / 1.164 GB, free: 10.93 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001427/0.7288, allocations: 71.53 kB / 1.164 GB, free: 10.84 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002541/0.7291, allocations: 107.4 kB / 1.164 GB, free: 10.73 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.419e-06/0.7291, allocations: 4 kB / 1.164 GB, free: 10.72 MB / 0.92 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003884/0.7295, allocations: 165.4 kB / 1.164 GB, free: 10.55 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.7295, allocations: 6.031 kB / 1.164 GB, free: 10.55 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.221e-06/0.7295, allocations: 0 / 1.164 GB, free: 10.55 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/0.7296, allocations: 4 kB / 1.164 GB, free: 10.55 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002818/0.7298, allocations: 36.11 kB / 1.165 GB, free: 10.51 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.427e-05/0.7299, allocations: 7.938 kB / 1.165 GB, free: 10.5 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.983e-05/0.73, allocations: 12 kB / 1.165 GB, free: 10.49 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.019e-05/0.73, allocations: 4 kB / 1.165 GB, free: 10.49 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (24): * Single equations (assignments): 24 * 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 0.0001285/0.7302, allocations: 122.3 kB / 1.165 GB, free: 10.36 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.912e-05/0.7302, allocations: 11.89 kB / 1.165 GB, free: 10.35 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.606e-05/0.7303, allocations: 16.44 kB / 1.165 GB, free: 10.33 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.7303, allocations: 7.938 kB / 1.165 GB, free: 10.32 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/0.7303, allocations: 3.938 kB / 1.165 GB, free: 10.32 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.7303, allocations: 0 / 1.165 GB, free: 10.32 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002327/0.7306, allocations: 197.6 kB / 1.165 GB, free: 10.08 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.7306, allocations: 0 / 1.165 GB, free: 10.08 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003199/0.7309, allocations: 39.92 kB / 1.165 GB, free: 10.04 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.029e-06/0.7309, allocations: 0 / 1.165 GB, free: 10.04 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.036e-05/0.731, allocations: 4 kB / 1.165 GB, free: 10.04 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.599e-06/0.731, allocations: 7.938 kB / 1.165 GB, free: 10.03 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.731, allocations: 7.922 kB / 1.165 GB, free: 10.02 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004481/0.7315, allocations: 198.2 kB / 1.165 GB, free: 9.809 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 9.839e-05/0.7316, allocations: 89 kB / 1.165 GB, free: 9.703 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.252e-05/0.7316, allocations: 12.06 kB / 1.165 GB, free: 9.691 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001839/0.7318, allocations: 15.92 kB / 1.165 GB, free: 9.676 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.045e-05/0.7319, allocations: 11.92 kB / 1.165 GB, free: 9.664 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.141e-05/0.7319, allocations: 8 kB / 1.165 GB, free: 9.656 MB / 0.92 GB Notification: Performance of sorting global known variables: time 4.449e-05/0.7319, allocations: 79.28 kB / 1.165 GB, free: 9.578 MB / 0.92 GB Notification: Performance of sort global known variables: time 2.51e-07/0.7319, allocations: 0 / 1.165 GB, free: 9.578 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0003794/0.7323, allocations: 24 kB / 1.165 GB, free: 9.555 MB / 0.92 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (hLiqSym,hSteSym,hAirSym,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 (19): * Single equations (assignments): 19 * 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.0007639/0.7331, allocations: 0.7467 MB / 1.166 GB, free: 8.781 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0003075/0.7334, allocations: 105.5 kB / 1.166 GB, free: 8.68 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.7334, allocations: 0 / 1.166 GB, free: 8.68 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.000121/0.7336, allocations: 47.92 kB / 1.166 GB, free: 8.633 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000457/0.734, allocations: 27.92 kB / 1.166 GB, free: 8.605 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002686/0.7367, allocations: 1.846 MB / 1.168 GB, free: 6.66 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000289/0.737, allocations: 0.6972 MB / 1.169 GB, free: 5.938 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0002281/0.7373, allocations: 32.61 kB / 1.169 GB, free: 5.906 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.603e-05/0.7374, allocations: 23.44 kB / 1.169 GB, free: 5.883 MB / 0.92 GB Notification: Performance of SimCode: time 4.21e-07/0.7374, allocations: 0 / 1.169 GB, free: 5.883 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03027/0.7677, allocations: 2.222 MB / 1.171 GB, free: 3.742 MB / 0.92 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002992/0.768, allocations: 203 kB / 1.171 GB, free: 3.477 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.879/2.647, allocations: 0 / 1.171 GB, free: 3.477 MB / 0.92 GB (rm -f Buildings_10_Buildings.Media.Examples.AirDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Media.Examples.AirDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Examples.AirDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Media.Examples.AirDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Media.Examples.AirDerivativeCheck_res.mat --tempDir=temp_Buildings_10_Buildings_Media_Examples_AirDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_10_Buildings_Media_Examples_AirDerivativeCheck.fmu > Buildings_10_Buildings.Media.Examples.AirDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Examples.AirDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Examples_AirDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.AirDerivativeCheck.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 " Variables in the reference:time,der(hLiqSym),der(hLiqCod),der(hSteSym),der(hSteCod),der(cpSym),der(cpCod),der(cvSym),der(cvCod) Variables in the result:T,X[1],cpCod,cpSym,cvCod,cvSym,der(T),der(X[1]),der(cpCod),der(cpSym),der(cvCod),der(cvSym),der(hAirCod),der(hAirSym),der(hLiqCod),der(hLiqSym),der(hSteCod),der(hSteSym),hAirCod,hAirSym,hLiqCod,hLiqSym,hSteCod,hSteSym,time