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.001174/0.001174, 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.001209/0.001209, allocations: 194.6 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.217/1.217, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.408/2.408, allocations: 461.9 MB / 0.7346 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001393, allocations: 70.97 kB / 0.8992 GB, free: 37.01 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.223/0.2244, allocations: 157.4 MB / 1.053 GB, free: 8.301 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirDerivativeCheck): time 0.002066/0.2265, allocations: 1.342 MB / 1.054 GB, free: 6.945 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.1386/0.3652, allocations: 148.1 MB / 1.199 GB, free: 2.277 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.581e-05/0.3653, allocations: 4 kB / 1.199 GB, free: 2.273 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 3.781e-05/0.3654, allocations: 3.938 kB / 1.199 GB, free: 2.27 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 8.723e-05/0.3655, allocations: 15.91 kB / 1.199 GB, free: 2.254 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.000897/0.3664, allocations: 322.6 kB / 1.199 GB, free: 1.938 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 8.615e-05/0.3665, allocations: 63.72 kB / 1.199 GB, free: 1.875 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 3.321e-05/0.3665, allocations: 3.984 kB / 1.199 GB, free: 1.871 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 9.198e-05/0.3666, allocations: 27.92 kB / 1.199 GB, free: 1.844 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 8.176e-05/0.3667, allocations: 39.89 kB / 1.199 GB, free: 1.805 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.373e-05/0.3667, allocations: 4 kB / 1.199 GB, free: 1.801 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007447/0.3675, allocations: 406.8 kB / 1.2 GB, free: 1.402 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 5.404e-05/0.3675, allocations: 15.97 kB / 1.2 GB, free: 1.387 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 4.09e-05/0.3676, allocations: 27.86 kB / 1.2 GB, free: 1.359 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002886/0.3679, allocations: 167.8 kB / 1.2 GB, free: 1.195 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.227e-06/0.3679, allocations: 0 / 1.2 GB, free: 1.195 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.202e-06/0.3679, allocations: 0 / 1.2 GB, free: 1.195 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 6.423e-06/0.3679, allocations: 0 / 1.2 GB, free: 1.195 MB / 0.9512 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.0004431/0.3683, allocations: 387.4 kB / 1.2 GB, free: 0.7695 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.272e-05/0.3684, allocations: 8.625 kB / 1.2 GB, free: 0.7617 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.389e-05/0.3684, allocations: 38.75 kB / 1.2 GB, free: 0.7148 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003912/0.3688, allocations: 40.8 kB / 1.2 GB, free: 0.6758 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.756e-05/0.3689, allocations: 168.1 kB / 1.2 GB, free: 484 kB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.157e-05/0.3689, allocations: 4 kB / 1.2 GB, free: 480 kB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.182e-05/0.369, allocations: 15.91 kB / 1.2 GB, free: 464 kB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001487/0.3692, allocations: 81.64 kB / 1.201 GB, free: 376 kB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.192e-06/0.3692, allocations: 3.938 kB / 1.201 GB, free: 372 kB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.386e-05/0.3692, allocations: 4 kB / 1.201 GB, free: 368 kB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.581e-06/0.3692, allocations: 0 / 1.201 GB, free: 368 kB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.37e-05/0.3693, allocations: 51.83 kB / 1.201 GB, free: 316 kB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001791/0.3695, allocations: 185.6 kB / 1.201 GB, free: 80 kB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000179/0.3697, allocations: 86.75 kB / 1.201 GB, free: 15.98 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.943e-05/0.3697, allocations: 44.66 kB / 1.201 GB, free: 15.94 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002148/0.3699, allocations: 178.2 kB / 1.201 GB, free: 15.73 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.304e-05/0.37, allocations: 34.56 kB / 1.201 GB, free: 15.68 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=12): time 1.193e-06/0.37, allocations: 0 / 1.201 GB, free: 15.68 MB / 0.9669 GB Notification: Performance of matching and sorting (n=19): time 0.001193/0.3712, allocations: 0.5463 MB / 1.202 GB, free: 15.09 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.383e-05/0.3712, allocations: 51.41 kB / 1.202 GB, free: 15.02 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.358e-05/0.3713, allocations: 101.8 kB / 1.202 GB, free: 14.91 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.725e-05/0.3713, allocations: 29.7 kB / 1.202 GB, free: 14.88 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 3.174e-05/0.3713, allocations: 84.52 kB / 1.202 GB, free: 14.79 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 5.357e-05/0.3714, allocations: 71.14 kB / 1.202 GB, free: 14.72 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.034e-05/0.3715, allocations: 41.64 kB / 1.202 GB, free: 14.68 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 9.553e-05/0.3716, allocations: 322.8 kB / 1.202 GB, free: 14.35 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.179e-05/0.3716, allocations: 31.98 kB / 1.202 GB, free: 14.32 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.534e-05/0.3717, allocations: 65.44 kB / 1.202 GB, free: 14.25 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001439/0.3719, allocations: 127.3 kB / 1.203 GB, free: 14.11 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.92e-07/0.3719, allocations: 0 / 1.203 GB, free: 14.11 MB / 0.9669 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0001943/0.3721, allocations: 149.5 kB / 1.203 GB, free: 13.96 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.353e-05/0.3721, allocations: 8 kB / 1.203 GB, free: 13.95 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.3721, allocations: 3.984 kB / 1.203 GB, free: 13.95 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.094e-05/0.3721, allocations: 0 / 1.203 GB, free: 13.95 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001609/0.3723, allocations: 43.92 kB / 1.203 GB, free: 13.9 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.306e-06/0.3723, allocations: 12.08 kB / 1.203 GB, free: 13.89 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.963e-05/0.3724, allocations: 0 / 1.203 GB, free: 13.89 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.175e-05/0.3724, allocations: 15.94 kB / 1.203 GB, free: 13.88 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 8.343e-05/0.3725, allocations: 123.3 kB / 1.203 GB, free: 13.75 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.121e-05/0.3725, allocations: 11.91 kB / 1.203 GB, free: 13.73 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.902e-05/0.3725, allocations: 12.44 kB / 1.203 GB, free: 13.73 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.3725, allocations: 4 kB / 1.203 GB, free: 13.72 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.3726, allocations: 3.938 kB / 1.203 GB, free: 13.72 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.3726, allocations: 3.984 kB / 1.203 GB, free: 13.71 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001433/0.3727, allocations: 197.6 kB / 1.203 GB, free: 13.47 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.3727, allocations: 0 / 1.203 GB, free: 13.47 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001815/0.3729, allocations: 35.98 kB / 1.203 GB, free: 13.44 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.3729, allocations: 0 / 1.203 GB, free: 13.44 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.104e-05/0.3729, allocations: 8 kB / 1.203 GB, free: 13.43 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.3729, allocations: 128 / 1.203 GB, free: 13.43 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.63e-05/0.373, allocations: 7.938 kB / 1.203 GB, free: 13.42 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002632/0.3732, allocations: 214.9 kB / 1.203 GB, free: 13.2 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.792e-05/0.3733, allocations: 89 kB / 1.203 GB, free: 13.09 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.761e-05/0.3733, allocations: 8 kB / 1.203 GB, free: 13.08 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001183/0.3735, allocations: 4 kB / 1.203 GB, free: 13.08 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.488e-05/0.3735, allocations: 23.92 kB / 1.203 GB, free: 13.05 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.017e-05/0.3735, allocations: 4 kB / 1.203 GB, free: 13.05 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 2.948e-05/0.3735, allocations: 79.27 kB / 1.204 GB, free: 12.97 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3735, allocations: 0 / 1.204 GB, free: 12.97 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.000213/0.3738, allocations: 32 kB / 1.204 GB, free: 12.94 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.0005023/0.3743, allocations: 0.7452 MB / 1.204 GB, free: 12.16 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001966/0.3745, allocations: 117.7 kB / 1.204 GB, free: 12.05 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3745, allocations: 0 / 1.204 GB, free: 12.05 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 7.476e-05/0.3746, allocations: 55.88 kB / 1.204 GB, free: 12 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002427/0.3748, allocations: 25.33 kB / 1.205 GB, free: 11.97 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001683/0.3765, allocations: 1.803 MB / 1.206 GB, free: 10.07 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002471/0.3768, allocations: 0.7086 MB / 1.207 GB, free: 9.34 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0001171/0.3769, allocations: 20.64 kB / 1.207 GB, free: 9.316 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.037e-05/0.3769, allocations: 27.42 kB / 1.207 GB, free: 9.289 MB / 0.9669 GB Notification: Performance of SimCode: time 2.4e-07/0.3769, allocations: 0 / 1.207 GB, free: 9.289 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.551/1.928, allocations: 2.375 MB / 1.209 GB, free: 6.977 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.542/10.47, allocations: 8.719 kB / 1.209 GB, free: 6.973 MB / 0.9669 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[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