Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",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.001472/0.001472, 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.001648/0.001648, allocations: 193.6 kB / 16.13 MB, free: 6.645 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.311/1.311, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.568/2.568, allocations: 461.8 MB / 0.7342 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 68.66 kB / 0.8985 GB, free: 37.01 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2264/0.2276, allocations: 157.4 MB / 1.052 GB, free: 8.277 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002165/0.2298, allocations: 1.337 MB / 1.054 GB, free: 6.926 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.1321/0.362, allocations: 144.7 MB / 1.195 GB, free: 5.68 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.575e-05/0.362, allocations: 0 / 1.195 GB, free: 5.68 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 2.785e-05/0.3621, allocations: 3.984 kB / 1.195 GB, free: 5.676 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 4.237e-05/0.3621, allocations: 3.938 kB / 1.195 GB, free: 5.672 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003677/0.3625, allocations: 83.58 kB / 1.195 GB, free: 5.59 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 5.524e-05/0.3626, allocations: 27.92 kB / 1.195 GB, free: 5.562 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 3.062e-05/0.3626, allocations: 4 kB / 1.195 GB, free: 5.559 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 3.737e-05/0.3626, allocations: 19.97 kB / 1.195 GB, free: 5.539 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 4.569e-05/0.3627, allocations: 15.92 kB / 1.195 GB, free: 5.523 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.013e-05/0.3627, allocations: 0 / 1.195 GB, free: 5.523 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002439/0.363, allocations: 79.77 kB / 1.195 GB, free: 5.445 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 1.645e-05/0.363, allocations: 7.984 kB / 1.195 GB, free: 5.438 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 2.788e-05/0.363, allocations: 19.92 kB / 1.195 GB, free: 5.418 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0001432/0.3632, allocations: 68.09 kB / 1.195 GB, free: 5.352 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.3632, allocations: 0 / 1.195 GB, free: 5.352 MB / 0.9512 GB Notification: Performance of FrontEnd: time 7.61e-07/0.3632, allocations: 0 / 1.195 GB, free: 5.352 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 3.396e-06/0.3632, allocations: 0 / 1.195 GB, free: 5.352 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003437/0.3635, allocations: 355.5 kB / 1.195 GB, free: 4.957 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.661e-05/0.3636, allocations: 11.97 kB / 1.195 GB, free: 4.945 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.339e-05/0.3636, allocations: 34.73 kB / 1.196 GB, free: 4.902 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001759/0.3638, allocations: 8.938 kB / 1.196 GB, free: 4.895 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.836e-05/0.3639, allocations: 172 kB / 1.196 GB, free: 4.688 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.127e-05/0.3639, allocations: 7.938 kB / 1.196 GB, free: 4.68 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.994e-05/0.364, allocations: 7.984 kB / 1.196 GB, free: 4.672 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001072/0.3641, allocations: 49.69 kB / 1.196 GB, free: 4.617 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.363e-06/0.3641, allocations: 3.938 kB / 1.196 GB, free: 4.613 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.778e-06/0.3641, allocations: 4 kB / 1.196 GB, free: 4.609 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.3641, allocations: 0 / 1.196 GB, free: 4.609 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.533e-05/0.3642, allocations: 15.98 kB / 1.196 GB, free: 4.594 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001464/0.3643, allocations: 169.6 kB / 1.196 GB, free: 4.379 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 7.889e-05/0.3644, allocations: 50.56 kB / 1.196 GB, free: 4.32 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.495e-05/0.3644, allocations: 12.86 kB / 1.196 GB, free: 4.305 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.125e-05/0.3644, allocations: 4 kB / 1.196 GB, free: 4.301 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.161e-05/0.3645, allocations: 38.5 kB / 1.196 GB, free: 4.254 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 2.365e-06/0.3645, allocations: 3.984 kB / 1.196 GB, free: 4.25 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11): time 0.0006637/0.3651, allocations: 378.5 kB / 1.196 GB, free: 3.828 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.958e-05/0.3652, allocations: 51.41 kB / 1.196 GB, free: 3.766 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.665e-05/0.3653, allocations: 97.86 kB / 1.197 GB, free: 3.66 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.502e-05/0.3653, allocations: 29.83 kB / 1.197 GB, free: 3.625 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 2.198e-05/0.3653, allocations: 80.14 kB / 1.197 GB, free: 3.543 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.672e-05/0.3653, allocations: 39.45 kB / 1.197 GB, free: 3.504 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.71e-05/0.3654, allocations: 37.64 kB / 1.197 GB, free: 3.461 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 8.621e-05/0.3655, allocations: 314.8 kB / 1.197 GB, free: 3.145 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.687e-05/0.3655, allocations: 23.98 kB / 1.197 GB, free: 3.121 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.388e-05/0.3656, allocations: 33.69 kB / 1.197 GB, free: 3.082 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.642e-05/0.3657, allocations: 69.59 kB / 1.197 GB, free: 3.008 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.11e-07/0.3657, allocations: 0 / 1.197 GB, free: 3.008 MB / 0.9512 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001298/0.3658, allocations: 97.52 kB / 1.197 GB, free: 2.906 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/0.3658, allocations: 5.719 kB / 1.197 GB, free: 2.902 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.76e-06/0.3659, allocations: 3.984 kB / 1.197 GB, free: 2.898 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.121e-05/0.3659, allocations: 4 kB / 1.197 GB, free: 2.895 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001056/0.366, allocations: 16 kB / 1.197 GB, free: 2.879 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.598e-06/0.366, allocations: 0 / 1.197 GB, free: 2.879 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.501e-05/0.366, allocations: 8 kB / 1.197 GB, free: 2.871 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.793e-06/0.366, allocations: 3.938 kB / 1.197 GB, free: 2.867 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (14): * Single equations (assignments): 14 * 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 7.245e-05/0.3661, allocations: 125.8 kB / 1.197 GB, free: 2.734 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.522e-05/0.3661, allocations: 4 kB / 1.197 GB, free: 2.73 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.085e-05/0.3662, allocations: 11.97 kB / 1.197 GB, free: 2.719 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.3662, allocations: 0 / 1.197 GB, free: 2.719 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.3662, allocations: 4 kB / 1.197 GB, free: 2.715 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.3662, allocations: 0 / 1.197 GB, free: 2.715 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001144/0.3663, allocations: 169.6 kB / 1.198 GB, free: 2.5 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.3663, allocations: 0 / 1.198 GB, free: 2.5 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000121/0.3665, allocations: 20 kB / 1.198 GB, free: 2.48 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.029e-06/0.3665, allocations: 7.984 kB / 1.198 GB, free: 2.473 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.155e-06/0.3665, allocations: 0 / 1.198 GB, free: 2.473 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.3665, allocations: 0 / 1.198 GB, free: 2.473 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.3665, allocations: 4 kB / 1.198 GB, free: 2.469 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001814/0.3667, allocations: 136.8 kB / 1.198 GB, free: 2.316 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 6.211e-05/0.3667, allocations: 85.14 kB / 1.198 GB, free: 2.215 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.553e-05/0.3668, allocations: 4 kB / 1.198 GB, free: 2.211 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.634e-05/0.3669, allocations: 4 kB / 1.198 GB, free: 2.207 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.749e-05/0.3669, allocations: 11.98 kB / 1.198 GB, free: 2.195 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.116e-05/0.3669, allocations: 4 kB / 1.198 GB, free: 2.191 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 2.604e-05/0.3669, allocations: 83.22 kB / 1.198 GB, free: 2.109 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3669, allocations: 0 / 1.198 GB, free: 2.109 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0001958/0.3671, allocations: 12 kB / 1.198 GB, free: 2.098 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (hLiqSym,hSteSym,hAirSym) * 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 (11): * Single equations (assignments): 11 * 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.0003805/0.3675, allocations: 0.6749 MB / 1.199 GB, free: 1.391 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001144/0.3676, allocations: 52.45 kB / 1.199 GB, free: 1.34 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.3677, allocations: 0 / 1.199 GB, free: 1.34 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 3.706e-05/0.3677, allocations: 31.92 kB / 1.199 GB, free: 1.309 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002058/0.3679, allocations: 14.05 kB / 1.199 GB, free: 1.297 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00123/0.3691, allocations: 1.464 MB / 1.2 GB, free: 15.75 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002164/0.3694, allocations: 0.6848 MB / 1.201 GB, free: 15.04 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 6.507e-05/0.3694, allocations: 8.672 kB / 1.201 GB, free: 15.03 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.792e-05/0.3695, allocations: 23.44 kB / 1.201 GB, free: 15 MB / 0.9669 GB Notification: Performance of SimCode: time 2.3e-07/0.3695, allocations: 0 / 1.201 GB, free: 15 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1863/0.5558, allocations: 1.524 MB / 1.202 GB, free: 13.62 MB / 0.9669 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000196/0.556, allocations: 229.8 kB / 1.203 GB, free: 13.36 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.554/2.11, allocations: 2.25 kB / 1.203 GB, free: 13.36 MB / 0.9669 GB (rm -f Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.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(hAirSym),der(hAirCod) Variables in the result:T,der(T),der(hAirCod),der(hAirSym),der(hLiqCod),der(hLiqSym),der(hSteCod),der(hSteSym),hAirCod,hAirSym,hLiqCod,hLiqSym,hSteCod,hSteSym,time