Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.AirDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Media_Examples_AirDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.AirDerivativeCheck,fileNamePrefix="Buildings_latest_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.009072/0.009078, allocations: 100.8 kB / 15.73 MB, free: 6.012 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.002127/0.002127, allocations: 187.7 kB / 16.67 MB, free: 5.949 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.397/1.397, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.807/2.807, allocations: 461.9 MB / 0.7348 GB, free: 14.6 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001389/0.001389, allocations: 59.91 kB / 1.054 GB, free: 7.656 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3018/0.3032, allocations: 157.4 MB / 1.207 GB, free: 10.16 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirDerivativeCheck): time 0.00297/0.3063, allocations: 1.328 MB / 1.209 GB, free: 8.816 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.8806/1.187, allocations: 148.1 MB / 1.353 GB, free: 13.99 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.007e-05/1.187, allocations: 1.25 kB / 1.353 GB, free: 13.99 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 4.315e-05/1.187, allocations: 6 kB / 1.353 GB, free: 13.98 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001109/1.187, allocations: 12.22 kB / 1.353 GB, free: 13.98 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.001229/1.188, allocations: 332.9 kB / 1.354 GB, free: 13.82 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001441/1.189, allocations: 62.45 kB / 1.354 GB, free: 13.8 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 9.451e-05/1.189, allocations: 7.438 kB / 1.354 GB, free: 13.79 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 6.325e-05/1.189, allocations: 31.8 kB / 1.354 GB, free: 13.78 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001089/1.189, allocations: 35.39 kB / 1.354 GB, free: 13.77 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.305e-05/1.189, allocations: 2.719 kB / 1.354 GB, free: 13.77 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009641/1.19, allocations: 406.7 kB / 1.354 GB, free: 13.6 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 6.096e-05/1.19, allocations: 21.67 kB / 1.354 GB, free: 13.59 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 4.951e-05/1.19, allocations: 31.2 kB / 1.354 GB, free: 13.57 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0004215/1.19, allocations: 162.1 kB / 1.354 GB, free: 13.52 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/1.19, allocations: 1.031 kB / 1.354 GB, free: 13.52 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.202e-06/1.19, allocations: 0 / 1.354 GB, free: 13.52 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.58e-06/1.19, allocations: 0 / 1.354 GB, free: 13.52 MB / 1.061 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.0005802/1.191, allocations: 394.2 kB / 1.355 GB, free: 13.13 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/1.191, allocations: 9.594 kB / 1.355 GB, free: 13.13 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.014e-05/1.191, allocations: 38.28 kB / 1.355 GB, free: 13.09 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004931/1.192, allocations: 36.59 kB / 1.355 GB, free: 13.08 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001288/1.192, allocations: 171.8 kB / 1.355 GB, free: 12.88 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.771e-05/1.192, allocations: 6.312 kB / 1.355 GB, free: 12.88 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.321e-05/1.192, allocations: 10.92 kB / 1.355 GB, free: 12.87 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000188/1.192, allocations: 80.48 kB / 1.355 GB, free: 12.82 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.677e-06/1.192, allocations: 0 / 1.355 GB, free: 12.82 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.444e-05/1.192, allocations: 6.312 kB / 1.355 GB, free: 12.82 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/1.192, allocations: 1.156 kB / 1.355 GB, free: 12.82 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001052/1.192, allocations: 45.11 kB / 1.355 GB, free: 12.81 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002148/1.192, allocations: 189.4 kB / 1.355 GB, free: 12.61 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002124/1.193, allocations: 94.11 kB / 1.355 GB, free: 12.56 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.059e-05/1.193, allocations: 27.81 kB / 1.355 GB, free: 12.55 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002724/1.193, allocations: 182.5 kB / 1.355 GB, free: 12.35 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.388e-05/1.193, allocations: 32.92 kB / 1.356 GB, free: 12.31 MB / 1.061 GB Notification: Performance of pre-optimization done (n=12): time 3.306e-06/1.193, allocations: 0 / 1.356 GB, free: 12.31 MB / 1.061 GB Notification: Performance of matching and sorting (n=19): time 0.001385/1.194, allocations: 0.5436 MB / 1.356 GB, free: 11.96 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.079e-05/1.194, allocations: 61.38 kB / 1.356 GB, free: 11.89 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.666e-05/1.195, allocations: 97.58 kB / 1.356 GB, free: 11.79 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.491e-05/1.195, allocations: 32.08 kB / 1.356 GB, free: 11.75 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 3.836e-05/1.195, allocations: 81.58 kB / 1.356 GB, free: 11.67 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 7.836e-05/1.195, allocations: 78.5 kB / 1.356 GB, free: 11.61 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.398e-05/1.195, allocations: 38.94 kB / 1.356 GB, free: 11.58 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001079/1.195, allocations: 320.7 kB / 1.357 GB, free: 11.27 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.156e-05/1.195, allocations: 37.05 kB / 1.357 GB, free: 11.25 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.07e-05/1.195, allocations: 69.08 kB / 1.357 GB, free: 11.21 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001755/1.195, allocations: 117.2 kB / 1.357 GB, free: 11.14 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/1.195, allocations: 1.375 kB / 1.357 GB, free: 11.14 MB / 1.061 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002385/1.196, allocations: 155.2 kB / 1.357 GB, free: 11.07 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/1.196, allocations: 6.406 kB / 1.357 GB, free: 11.07 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/1.196, allocations: 5.688 kB / 1.357 GB, free: 11.06 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/1.196, allocations: 1.5 kB / 1.357 GB, free: 11.06 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001773/1.196, allocations: 43.45 kB / 1.357 GB, free: 11.05 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/1.196, allocations: 2.156 kB / 1.357 GB, free: 11.05 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.055e-05/1.196, allocations: 6.219 kB / 1.357 GB, free: 11.05 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.331e-05/1.196, allocations: 8.469 kB / 1.357 GB, free: 11.05 MB / 1.061 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.0001083/1.196, allocations: 128 kB / 1.357 GB, free: 10.92 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.076e-05/1.196, allocations: 8.812 kB / 1.357 GB, free: 10.91 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.566e-05/1.196, allocations: 18.88 kB / 1.357 GB, free: 10.9 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/1.196, allocations: 1.984 kB / 1.357 GB, free: 10.9 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/1.196, allocations: 0 / 1.357 GB, free: 10.9 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/1.196, allocations: 6.141 kB / 1.357 GB, free: 10.89 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001855/1.196, allocations: 197.5 kB / 1.357 GB, free: 10.68 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/1.196, allocations: 0 / 1.357 GB, free: 10.68 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002005/1.196, allocations: 38.41 kB / 1.358 GB, free: 10.68 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/1.196, allocations: 5.938 kB / 1.358 GB, free: 10.68 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.208e-05/1.197, allocations: 1.312 kB / 1.358 GB, free: 10.68 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.329e-06/1.197, allocations: 1.859 kB / 1.358 GB, free: 10.68 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/1.197, allocations: 0 / 1.358 GB, free: 10.68 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003245/1.197, allocations: 217.6 kB / 1.358 GB, free: 10.55 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 9.705e-05/1.197, allocations: 91.81 kB / 1.358 GB, free: 10.45 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.129e-05/1.197, allocations: 5.875 kB / 1.358 GB, free: 10.45 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001703/1.197, allocations: 5.312 kB / 1.358 GB, free: 10.45 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.291e-05/1.197, allocations: 21.89 kB / 1.358 GB, free: 10.44 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.995e-05/1.197, allocations: 5.469 kB / 1.358 GB, free: 10.44 MB / 1.061 GB Notification: Performance of sorting global known variables: time 4.01e-05/1.197, allocations: 82.19 kB / 1.358 GB, free: 10.36 MB / 1.061 GB Notification: Performance of sort global known variables: time 2.71e-07/1.197, allocations: 0 / 1.358 GB, free: 10.36 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.000249/1.198, allocations: 30.12 kB / 1.358 GB, free: 10.35 MB / 1.061 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.0006877/1.198, allocations: 0.7461 MB / 1.359 GB, free: 9.699 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002442/1.198, allocations: 113.1 kB / 1.359 GB, free: 9.668 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/1.199, allocations: 0 / 1.359 GB, free: 9.668 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001084/1.199, allocations: 52.62 kB / 1.359 GB, free: 9.656 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003703/1.199, allocations: 18.53 kB / 1.359 GB, free: 9.648 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002373/1.201, allocations: 1.819 MB / 1.361 GB, free: 8.125 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003943/1.202, allocations: 0.6996 MB / 1.361 GB, free: 7.43 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001262/1.202, allocations: 23.27 kB / 1.361 GB, free: 7.422 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.414e-05/1.202, allocations: 25.5 kB / 1.361 GB, free: 7.41 MB / 1.061 GB Notification: Performance of SimCode: time 7.81e-07/1.202, allocations: 0 / 1.361 GB, free: 7.41 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02019/1.222, allocations: 2.467 MB / 1.364 GB, free: 6.945 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.711/8.933, allocations: 14.75 kB / 1.364 GB, free: 6.938 MB / 1.061 GB (rm -f Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Media_Examples_AirDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Media_Examples_AirDerivativeCheck.fmu > Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.AirDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_AirDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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[2]=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