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.005093/0.005093, allocations: 98.61 kB / 15.73 MB, free: 5.984 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.001188/0.001188, allocations: 196.3 kB / 16.68 MB, free: 5.91 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.36/1.36, allocations: 222.9 MB / 240.4 MB, free: 15.19 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.318/2.318, allocations: 390.2 MB / 0.6648 GB, free: 0.6797 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 63.91 kB / 0.9504 GB, free: 8.227 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9452/0.9465, allocations: 140.4 MB / 1.087 GB, free: 5.312 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirDerivativeCheck): time 0.002691/0.9493, allocations: 1.34 MB / 1.089 GB, free: 4.371 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.2065/1.156, allocations: 148.1 MB / 1.233 GB, free: 5.176 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.174e-05/1.156, allocations: 0 / 1.233 GB, free: 5.176 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.254e-05/1.156, allocations: 7.922 kB / 1.233 GB, free: 5.168 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001146/1.156, allocations: 11.05 kB / 1.233 GB, free: 5.16 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001186/1.157, allocations: 331.9 kB / 1.234 GB, free: 4.918 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001386/1.157, allocations: 60.14 kB / 1.234 GB, free: 4.891 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 5.251e-05/1.158, allocations: 7.219 kB / 1.234 GB, free: 4.887 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 7.298e-05/1.158, allocations: 31.62 kB / 1.234 GB, free: 4.871 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001193/1.158, allocations: 36.14 kB / 1.234 GB, free: 4.848 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.589e-05/1.158, allocations: 2.312 kB / 1.234 GB, free: 4.848 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008875/1.159, allocations: 405.5 kB / 1.234 GB, free: 4.629 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 5.356e-05/1.159, allocations: 17.02 kB / 1.234 GB, free: 4.617 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.492e-05/1.159, allocations: 31.53 kB / 1.234 GB, free: 4.598 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003761/1.159, allocations: 161.4 kB / 1.234 GB, free: 4.516 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/1.159, allocations: 0 / 1.234 GB, free: 4.516 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.423e-06/1.159, allocations: 0 / 1.234 GB, free: 4.516 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.051e-06/1.159, allocations: 0 / 1.234 GB, free: 4.516 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.0004892/1.16, allocations: 391.3 kB / 1.235 GB, free: 4.117 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/1.16, allocations: 17.09 kB / 1.235 GB, free: 4.109 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.31e-05/1.16, allocations: 37.06 kB / 1.235 GB, free: 4.066 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004206/1.16, allocations: 38.8 kB / 1.235 GB, free: 4.051 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001163/1.16, allocations: 165.3 kB / 1.235 GB, free: 3.852 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.514e-05/1.16, allocations: 3.219 kB / 1.235 GB, free: 3.852 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.6e-05/1.16, allocations: 13.16 kB / 1.235 GB, free: 3.844 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001825/1.161, allocations: 85.55 kB / 1.235 GB, free: 3.777 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.096e-06/1.161, allocations: 0 / 1.235 GB, free: 3.777 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.499e-05/1.161, allocations: 5.344 kB / 1.235 GB, free: 3.773 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.95e-06/1.161, allocations: 5.969 kB / 1.235 GB, free: 3.77 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.716e-05/1.161, allocations: 41.48 kB / 1.235 GB, free: 3.754 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002064/1.161, allocations: 184.9 kB / 1.235 GB, free: 3.539 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001805/1.161, allocations: 92.47 kB / 1.235 GB, free: 3.484 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.998e-05/1.161, allocations: 32.62 kB / 1.235 GB, free: 3.465 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002512/1.162, allocations: 180 kB / 1.236 GB, free: 3.266 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.583e-05/1.162, allocations: 31.53 kB / 1.236 GB, free: 3.227 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=12): time 1.232e-06/1.162, allocations: 1.156 kB / 1.236 GB, free: 3.227 MB / 0.9669 GB Notification: Performance of matching and sorting (n=19): time 0.001461/1.163, allocations: 0.5444 MB / 1.236 GB, free: 2.82 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.182e-05/1.163, allocations: 61.56 kB / 1.236 GB, free: 2.75 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.441e-05/1.163, allocations: 96.98 kB / 1.236 GB, free: 2.648 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.453e-05/1.163, allocations: 31.61 kB / 1.236 GB, free: 2.613 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 2.964e-05/1.163, allocations: 80.52 kB / 1.236 GB, free: 2.531 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 7.144e-05/1.163, allocations: 70.84 kB / 1.237 GB, free: 2.469 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.061e-05/1.163, allocations: 44.2 kB / 1.237 GB, free: 2.434 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001276/1.164, allocations: 321.2 kB / 1.237 GB, free: 2.113 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.384e-05/1.164, allocations: 36.06 kB / 1.237 GB, free: 2.098 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000104/1.164, allocations: 68.06 kB / 1.237 GB, free: 2.047 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001935/1.164, allocations: 125.4 kB / 1.237 GB, free: 1.961 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.552e-06/1.164, allocations: 2.438 kB / 1.237 GB, free: 1.961 MB / 0.9669 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002527/1.164, allocations: 156.4 kB / 1.237 GB, free: 1.871 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.155e-05/1.164, allocations: 8.438 kB / 1.237 GB, free: 1.871 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.543e-06/1.164, allocations: 1 kB / 1.237 GB, free: 1.871 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.818e-05/1.164, allocations: 2.156 kB / 1.237 GB, free: 1.871 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001879/1.164, allocations: 46.66 kB / 1.237 GB, free: 1.855 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.048e-05/1.164, allocations: 7.031 kB / 1.237 GB, free: 1.852 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.949e-05/1.165, allocations: 1.781 kB / 1.237 GB, free: 1.852 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.653e-05/1.165, allocations: 12.39 kB / 1.237 GB, free: 1.844 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 9.805e-05/1.165, allocations: 123.1 kB / 1.237 GB, free: 1.719 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.771e-05/1.165, allocations: 13.31 kB / 1.237 GB, free: 1.711 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.141e-05/1.165, allocations: 16.44 kB / 1.237 GB, free: 1.695 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.147e-06/1.165, allocations: 1.844 kB / 1.237 GB, free: 1.695 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.057e-06/1.165, allocations: 5.031 kB / 1.237 GB, free: 1.691 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.197e-06/1.165, allocations: 3.938 kB / 1.237 GB, free: 1.688 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001832/1.165, allocations: 193.3 kB / 1.238 GB, free: 1.469 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/1.165, allocations: 0 / 1.238 GB, free: 1.469 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000206/1.165, allocations: 43.25 kB / 1.238 GB, free: 1.457 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/1.165, allocations: 0.9375 kB / 1.238 GB, free: 1.457 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.614e-05/1.165, allocations: 9.094 kB / 1.238 GB, free: 1.449 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.564e-06/1.165, allocations: 5.125 kB / 1.238 GB, free: 1.445 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.94e-06/1.165, allocations: 3.938 kB / 1.238 GB, free: 1.441 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000314/1.166, allocations: 203.4 kB / 1.238 GB, free: 1.312 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 9.115e-05/1.166, allocations: 91.12 kB / 1.238 GB, free: 1.211 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.112e-05/1.166, allocations: 9.203 kB / 1.238 GB, free: 1.203 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000127/1.166, allocations: 3.969 kB / 1.238 GB, free: 1.203 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.999e-05/1.166, allocations: 17.77 kB / 1.238 GB, free: 1.191 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.262e-05/1.166, allocations: 7.75 kB / 1.238 GB, free: 1.188 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.145e-05/1.166, allocations: 77.72 kB / 1.238 GB, free: 1.113 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.11e-07/1.166, allocations: 0 / 1.238 GB, free: 1.113 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002333/1.166, allocations: 29.94 kB / 1.238 GB, free: 1.105 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.0006427/1.167, allocations: 0.7483 MB / 1.239 GB, free: 444 kB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002176/1.167, allocations: 110 kB / 1.239 GB, free: 400 kB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/1.167, allocations: 0 / 1.239 GB, free: 400 kB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 7.837e-05/1.167, allocations: 62.73 kB / 1.239 GB, free: 372 kB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002312/1.167, allocations: 14.09 kB / 1.239 GB, free: 364 kB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00207/1.169, allocations: 1.823 MB / 1.241 GB, free: 14.75 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003085/1.17, allocations: 0.696 MB / 1.242 GB, free: 14.05 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001235/1.17, allocations: 31.39 kB / 1.242 GB, free: 14.03 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.607e-05/1.17, allocations: 23.09 kB / 1.242 GB, free: 14.02 MB / 0.9825 GB Notification: Performance of SimCode: time 5.71e-07/1.17, allocations: 0 / 1.242 GB, free: 14.02 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04126/1.211, allocations: 2.466 MB / 1.244 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.753/8.964, allocations: 1.125 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