Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Media_Examples_AirDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.AirDerivativeCheck,fileNamePrefix="Buildings_9_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.006888/0.006888, allocations: 103.2 kB / 15.73 MB, free: 6.004 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.001415/0.001415, allocations: 190.6 kB / 16.67 MB, free: 5.93 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.436/1.436, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.41/2.41, allocations: 390.3 MB / 0.6648 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00137/0.00137, allocations: 67.89 kB / 0.9504 GB, free: 8.199 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9944/0.9958, allocations: 140.4 MB / 1.087 GB, free: 5.281 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirDerivativeCheck): time 0.002772/0.9986, allocations: 1.337 MB / 1.089 GB, free: 4.344 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.1929/1.192, allocations: 148.1 MB / 1.233 GB, free: 5.172 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.987e-05/1.192, allocations: 0 / 1.233 GB, free: 5.172 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.206e-05/1.192, allocations: 9.328 kB / 1.233 GB, free: 5.164 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001076/1.192, allocations: 10.8 kB / 1.233 GB, free: 5.156 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001276/1.193, allocations: 338.8 kB / 1.234 GB, free: 4.91 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001314/1.193, allocations: 60.17 kB / 1.234 GB, free: 4.883 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.916e-05/1.193, allocations: 6.969 kB / 1.234 GB, free: 4.879 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 6.17e-05/1.193, allocations: 31.78 kB / 1.234 GB, free: 4.863 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001034/1.193, allocations: 40.2 kB / 1.234 GB, free: 4.836 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.509e-05/1.194, allocations: 3.062 kB / 1.234 GB, free: 4.836 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008752/1.194, allocations: 401.7 kB / 1.234 GB, free: 4.621 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 5.496e-05/1.194, allocations: 21.53 kB / 1.234 GB, free: 4.605 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.676e-05/1.195, allocations: 31.02 kB / 1.234 GB, free: 4.586 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003702/1.195, allocations: 156.1 kB / 1.234 GB, free: 4.508 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.828e-06/1.195, allocations: 1.156 kB / 1.234 GB, free: 4.508 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.352e-06/1.195, allocations: 0 / 1.234 GB, free: 4.508 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.404e-06/1.195, allocations: 3.984 kB / 1.234 GB, free: 4.504 MB / 0.9669 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.0004867/1.195, allocations: 396 kB / 1.235 GB, free: 4.102 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/1.195, allocations: 8.906 kB / 1.235 GB, free: 4.102 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.124e-05/1.196, allocations: 33.47 kB / 1.235 GB, free: 4.062 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004421/1.196, allocations: 41.27 kB / 1.235 GB, free: 4.043 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001174/1.196, allocations: 166.2 kB / 1.235 GB, free: 3.844 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.92e-05/1.196, allocations: 6.281 kB / 1.235 GB, free: 3.84 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.158e-05/1.196, allocations: 13.94 kB / 1.235 GB, free: 3.832 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00018/1.196, allocations: 90.08 kB / 1.235 GB, free: 3.762 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/1.196, allocations: 0 / 1.235 GB, free: 3.762 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.528e-05/1.196, allocations: 5.188 kB / 1.235 GB, free: 3.758 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/1.196, allocations: 1.125 kB / 1.235 GB, free: 3.758 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001033/1.197, allocations: 46.8 kB / 1.235 GB, free: 3.738 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000204/1.197, allocations: 188.8 kB / 1.235 GB, free: 3.52 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001808/1.197, allocations: 96.16 kB / 1.235 GB, free: 3.461 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.278e-05/1.197, allocations: 32.06 kB / 1.235 GB, free: 3.441 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002715/1.197, allocations: 179.2 kB / 1.236 GB, free: 3.242 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.822e-05/1.197, allocations: 32.81 kB / 1.236 GB, free: 3.203 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=12): time 1.633e-06/1.197, allocations: 0 / 1.236 GB, free: 3.203 MB / 0.9669 GB Notification: Performance of matching and sorting (n=19): time 0.001317/1.199, allocations: 0.5473 MB / 1.236 GB, free: 2.797 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.434e-05/1.199, allocations: 54.09 kB / 1.236 GB, free: 2.734 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.043e-05/1.199, allocations: 100.4 kB / 1.236 GB, free: 2.629 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.09e-05/1.199, allocations: 31.05 kB / 1.236 GB, free: 2.594 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 2.674e-05/1.199, allocations: 82.05 kB / 1.236 GB, free: 2.512 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 5.729e-05/1.199, allocations: 70.02 kB / 1.237 GB, free: 2.449 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.395e-05/1.199, allocations: 40.36 kB / 1.237 GB, free: 2.418 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001014/1.199, allocations: 325 kB / 1.237 GB, free: 2.094 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.548e-05/1.199, allocations: 32.11 kB / 1.237 GB, free: 2.082 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.993e-05/1.199, allocations: 75.88 kB / 1.237 GB, free: 2.023 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001723/1.199, allocations: 122.2 kB / 1.237 GB, free: 1.941 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/1.199, allocations: 0 / 1.237 GB, free: 1.941 MB / 0.9669 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002274/1.2, allocations: 150.3 kB / 1.237 GB, free: 1.859 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/1.2, allocations: 5.719 kB / 1.237 GB, free: 1.859 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/1.2, allocations: 128 / 1.237 GB, free: 1.859 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/1.2, allocations: 6.234 kB / 1.237 GB, free: 1.855 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001715/1.2, allocations: 47.2 kB / 1.237 GB, free: 1.84 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.207e-06/1.2, allocations: 6.188 kB / 1.237 GB, free: 1.836 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.679e-05/1.2, allocations: 2.312 kB / 1.237 GB, free: 1.836 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.446e-05/1.2, allocations: 8.562 kB / 1.237 GB, free: 1.832 MB / 0.9669 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.0001347/1.2, allocations: 130.7 kB / 1.237 GB, free: 1.699 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.373e-05/1.2, allocations: 8.5 kB / 1.237 GB, free: 1.695 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.419e-05/1.2, allocations: 17.59 kB / 1.237 GB, free: 1.68 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/1.2, allocations: 2.438 kB / 1.237 GB, free: 1.68 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/1.2, allocations: 3.938 kB / 1.237 GB, free: 1.676 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/1.2, allocations: 3.984 kB / 1.238 GB, free: 1.672 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001587/1.2, allocations: 189 kB / 1.238 GB, free: 1.457 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/1.2, allocations: 1.125 kB / 1.238 GB, free: 1.457 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001961/1.201, allocations: 42.2 kB / 1.238 GB, free: 1.445 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/1.201, allocations: 5.312 kB / 1.238 GB, free: 1.441 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.275e-05/1.201, allocations: 1.125 kB / 1.238 GB, free: 1.441 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/1.201, allocations: 1.594 kB / 1.238 GB, free: 1.441 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/1.201, allocations: 3.938 kB / 1.238 GB, free: 1.438 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003135/1.201, allocations: 206.7 kB / 1.238 GB, free: 1.305 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001152/1.201, allocations: 91.69 kB / 1.238 GB, free: 1.203 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.058e-05/1.201, allocations: 5.219 kB / 1.238 GB, free: 1.199 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001162/1.201, allocations: 3.875 kB / 1.238 GB, free: 1.199 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.964e-05/1.201, allocations: 24.42 kB / 1.238 GB, free: 1.18 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.345e-05/1.201, allocations: 5.281 kB / 1.238 GB, free: 1.18 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.637e-05/1.201, allocations: 80.31 kB / 1.238 GB, free: 1.102 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/1.201, allocations: 1.094 kB / 1.238 GB, free: 1.102 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002403/1.202, allocations: 30.05 kB / 1.238 GB, free: 1.094 MB / 0.9669 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.0006775/1.202, allocations: 0.7486 MB / 1.239 GB, free: 428 kB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002158/1.202, allocations: 111.9 kB / 1.239 GB, free: 384 kB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/1.202, allocations: 0.9375 kB / 1.239 GB, free: 384 kB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 8.042e-05/1.203, allocations: 57.61 kB / 1.239 GB, free: 360 kB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002682/1.203, allocations: 15.25 kB / 1.239 GB, free: 352 kB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002085/1.205, allocations: 1.824 MB / 1.241 GB, free: 14.73 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003289/1.205, allocations: 0.7053 MB / 1.242 GB, free: 14.02 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001113/1.205, allocations: 22.25 kB / 1.242 GB, free: 14.01 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.226e-05/1.205, allocations: 23.69 kB / 1.242 GB, free: 14 MB / 0.9825 GB Notification: Performance of SimCode: time 4.11e-07/1.205, allocations: 0 / 1.242 GB, free: 14 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0224/1.228, allocations: 2.432 MB / 1.244 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.276/9.504, allocations: 4.875 kB / 1.244 GB, free: 12.7 MB / 0.9825 GB (rm -f Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Media.Examples.AirDerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Media_Examples_AirDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Media_Examples_AirDerivativeCheck.fmu > Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.AirDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_AirDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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