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.0009246/0.0009247, allocations: 97.88 kB / 15.36 MB, free: 0.7344 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.005708/0.005708, allocations: 171.8 kB / 16.27 MB, free: 6.324 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.347/1.347, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.552/2.552, allocations: 462.6 MB / 0.7364 GB, free: 15.53 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0002915/0.0002916, allocations: 17.31 kB / 0.9029 GB, free: 36.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2306/0.2309, allocations: 159.6 MB / 1.059 GB, free: 4.855 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.001122/0.2321, allocations: 1.005 MB / 1.06 GB, free: 3.84 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.1217/0.3537, allocations: 143.2 MB / 1.2 GB, free: 4.141 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.419e-05/0.3538, allocations: 3.938 kB / 1.2 GB, free: 4.137 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 1.466e-05/0.3538, allocations: 0 / 1.2 GB, free: 4.137 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 4.271e-05/0.3539, allocations: 8 kB / 1.2 GB, free: 4.129 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003426/0.3542, allocations: 87.56 kB / 1.2 GB, free: 4.043 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 5.338e-05/0.3543, allocations: 27.92 kB / 1.2 GB, free: 4.016 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 3.012e-05/0.3543, allocations: 0 / 1.2 GB, free: 4.016 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 3.42e-05/0.3543, allocations: 15.98 kB / 1.2 GB, free: 4 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 4.85e-05/0.3544, allocations: 11.92 kB / 1.2 GB, free: 3.988 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.126e-05/0.3544, allocations: 4 kB / 1.2 GB, free: 3.984 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002269/0.3546, allocations: 75.81 kB / 1.2 GB, free: 3.91 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 1.543e-05/0.3547, allocations: 12 kB / 1.2 GB, free: 3.898 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 3.425e-05/0.3547, allocations: 49.55 kB / 1.2 GB, free: 3.844 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0001266/0.3548, allocations: 68.05 kB / 1.2 GB, free: 3.777 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.3549, allocations: 0 / 1.2 GB, free: 3.777 MB / 0.9512 GB Notification: Performance of FrontEnd: time 3.186e-06/0.3549, allocations: 4 kB / 1.2 GB, free: 3.773 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 3.036e-06/0.3549, allocations: 0 / 1.2 GB, free: 3.773 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.0002887/0.3552, allocations: 339.5 kB / 1.2 GB, free: 3.395 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.3552, allocations: 11.97 kB / 1.2 GB, free: 3.383 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.63e-05/0.3553, allocations: 38.73 kB / 1.2 GB, free: 3.336 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001596/0.3554, allocations: 12.94 kB / 1.2 GB, free: 3.324 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.3e-05/0.3555, allocations: 164.1 kB / 1.2 GB, free: 3.125 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.424e-05/0.3555, allocations: 7.938 kB / 1.2 GB, free: 3.117 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.105e-05/0.3556, allocations: 11.89 kB / 1.2 GB, free: 3.105 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001079/0.3557, allocations: 49.69 kB / 1.201 GB, free: 3.051 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.991e-06/0.3557, allocations: 0 / 1.201 GB, free: 3.051 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.002e-05/0.3557, allocations: 3.984 kB / 1.201 GB, free: 3.047 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.214e-06/0.3557, allocations: 4 kB / 1.201 GB, free: 3.043 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.044e-05/0.3558, allocations: 19.92 kB / 1.201 GB, free: 3.023 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001397/0.3559, allocations: 169.6 kB / 1.201 GB, free: 2.809 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 7.305e-05/0.356, allocations: 46.56 kB / 1.201 GB, free: 2.754 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.567e-05/0.356, allocations: 16.86 kB / 1.201 GB, free: 2.734 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 7.223e-06/0.356, allocations: 0 / 1.201 GB, free: 2.734 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.011e-05/0.356, allocations: 30.8 kB / 1.201 GB, free: 2.695 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 2.144e-06/0.3561, allocations: 0 / 1.201 GB, free: 2.695 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11): time 0.0006123/0.3567, allocations: 382.4 kB / 1.201 GB, free: 2.27 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.01e-05/0.3567, allocations: 55.41 kB / 1.201 GB, free: 2.203 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.009e-05/0.3568, allocations: 93.86 kB / 1.201 GB, free: 2.102 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.411e-05/0.3568, allocations: 25.7 kB / 1.201 GB, free: 2.07 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 2.122e-05/0.3568, allocations: 80.14 kB / 1.201 GB, free: 1.988 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.969e-05/0.3569, allocations: 43.45 kB / 1.201 GB, free: 1.945 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.541e-05/0.3569, allocations: 25.78 kB / 1.201 GB, free: 1.914 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 7.911e-05/0.357, allocations: 318.8 kB / 1.202 GB, free: 1.594 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.44e-05/0.357, allocations: 23.98 kB / 1.202 GB, free: 1.57 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.058e-05/0.3571, allocations: 33.69 kB / 1.202 GB, free: 1.531 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.922e-05/0.3571, allocations: 65.72 kB / 1.202 GB, free: 1.461 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.82e-07/0.3571, allocations: 0 / 1.202 GB, free: 1.461 MB / 0.9512 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001171/0.3573, allocations: 93.58 kB / 1.202 GB, free: 1.363 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.3573, allocations: 4 kB / 1.202 GB, free: 1.359 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.597e-06/0.3573, allocations: 7.938 kB / 1.202 GB, free: 1.352 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.137e-05/0.3573, allocations: 7.984 kB / 1.202 GB, free: 1.344 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.829e-05/0.3574, allocations: 16 kB / 1.202 GB, free: 1.328 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.3574, allocations: 4 kB / 1.202 GB, free: 1.324 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.135e-05/0.3575, allocations: 8 kB / 1.202 GB, free: 1.316 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.422e-06/0.3575, allocations: 3.938 kB / 1.202 GB, free: 1.312 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 6.544e-05/0.3575, allocations: 117.8 kB / 1.202 GB, free: 1.188 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.478e-05/0.3576, allocations: 7.984 kB / 1.202 GB, free: 1.18 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.212e-05/0.3576, allocations: 19.91 kB / 1.202 GB, free: 1.16 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.3576, allocations: 0 / 1.202 GB, free: 1.16 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.3576, allocations: 4 kB / 1.202 GB, free: 1.156 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.3576, allocations: 0 / 1.202 GB, free: 1.156 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001027/0.3577, allocations: 169.6 kB / 1.202 GB, free: 0.9414 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.3577, allocations: 0 / 1.202 GB, free: 0.9414 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001119/0.3578, allocations: 20 kB / 1.202 GB, free: 0.9219 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.3579, allocations: 0 / 1.202 GB, free: 0.9219 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.586e-06/0.3579, allocations: 3.984 kB / 1.202 GB, free: 0.918 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.3579, allocations: 0 / 1.202 GB, free: 0.918 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.3579, allocations: 4 kB / 1.202 GB, free: 0.9141 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001679/0.3581, allocations: 140.8 kB / 1.202 GB, free: 0.7578 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.242e-05/0.3581, allocations: 85.14 kB / 1.203 GB, free: 0.6562 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.366e-05/0.3581, allocations: 4 kB / 1.203 GB, free: 0.6523 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.711e-05/0.3582, allocations: 4 kB / 1.203 GB, free: 0.6484 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.545e-05/0.3582, allocations: 7.984 kB / 1.203 GB, free: 0.6406 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.973e-06/0.3582, allocations: 4 kB / 1.203 GB, free: 0.6367 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 2.537e-05/0.3583, allocations: 83.22 kB / 1.203 GB, free: 0.5547 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3583, allocations: 4.094 kB / 1.203 GB, free: 0.5508 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0001832/0.3585, allocations: 16 kB / 1.203 GB, free: 0.5352 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.0003532/0.3588, allocations: 0.6631 MB / 1.203 GB, free: 15.84 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.000106/0.3589, allocations: 56.02 kB / 1.203 GB, free: 15.79 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.359, allocations: 0 / 1.203 GB, free: 15.79 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 3.454e-05/0.359, allocations: 35.92 kB / 1.203 GB, free: 15.75 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001774/0.3592, allocations: 11.94 kB / 1.203 GB, free: 15.74 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001119/0.3603, allocations: 1.506 MB / 1.205 GB, free: 14.15 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000177/0.3605, allocations: 0.6887 MB / 1.206 GB, free: 13.43 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 6.221e-05/0.3606, allocations: 8.672 kB / 1.206 GB, free: 13.43 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.432e-05/0.3606, allocations: 15.44 kB / 1.206 GB, free: 13.41 MB / 0.9669 GB Notification: Performance of SimCode: time 4e-07/0.3606, allocations: 0 / 1.206 GB, free: 13.41 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.645/2.005, allocations: 1.465 MB / 1.207 GB, free: 12.12 MB / 0.9669 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00034/2.006, allocations: 235.1 kB / 1.207 GB, free: 11.85 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.37/4.376, allocations: 2.875 kB / 1.207 GB, free: 11.85 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