Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_9_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.007477/0.007477, 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.001694/0.001694, 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.304/1.304, allocations: 222.9 MB / 240.4 MB, free: 15.14 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.302/2.302, allocations: 390.3 MB / 0.6648 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 63.91 kB / 0.9504 GB, free: 8.176 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6169/0.6181, allocations: 140.4 MB / 1.087 GB, free: 5.266 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.001809/0.62, allocations: 1.281 MB / 1.089 GB, free: 4.371 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.1524/0.7724, allocations: 147 MB / 1.232 GB, free: 6.07 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.898e-05/0.7725, allocations: 5.281 kB / 1.232 GB, free: 6.066 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 1.717e-05/0.7725, allocations: 0 / 1.232 GB, free: 6.066 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.798e-05/0.7726, allocations: 5.406 kB / 1.232 GB, free: 6.062 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004218/0.773, allocations: 92.95 kB / 1.232 GB, free: 5.992 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 7.055e-05/0.7731, allocations: 36.52 kB / 1.232 GB, free: 5.973 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.111e-05/0.7731, allocations: 2.094 kB / 1.232 GB, free: 5.973 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 4.097e-05/0.7732, allocations: 24.34 kB / 1.232 GB, free: 5.957 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 5.207e-05/0.7732, allocations: 9.75 kB / 1.232 GB, free: 5.953 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.119e-05/0.7733, allocations: 1.062 kB / 1.232 GB, free: 5.953 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000249/0.7735, allocations: 78.53 kB / 1.232 GB, free: 5.91 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.655e-05/0.7735, allocations: 13.11 kB / 1.232 GB, free: 5.898 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.35e-05/0.7736, allocations: 26.89 kB / 1.233 GB, free: 5.879 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001489/0.7737, allocations: 62.45 kB / 1.233 GB, free: 5.852 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.7738, allocations: 1.062 kB / 1.233 GB, free: 5.852 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.413e-06/0.7738, allocations: 4 kB / 1.233 GB, free: 5.848 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.253e-06/0.7738, allocations: 0 / 1.233 GB, free: 5.848 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003435/0.7741, allocations: 350.2 kB / 1.233 GB, free: 5.477 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.399e-05/0.7742, allocations: 9.125 kB / 1.233 GB, free: 5.477 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.131e-05/0.7742, allocations: 32.88 kB / 1.233 GB, free: 5.438 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001818/0.7744, allocations: 16.08 kB / 1.233 GB, free: 5.43 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.964e-05/0.7745, allocations: 165.2 kB / 1.233 GB, free: 5.23 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.158e-05/0.7745, allocations: 6.125 kB / 1.233 GB, free: 5.227 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.284e-05/0.7745, allocations: 7.719 kB / 1.233 GB, free: 5.223 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001086/0.7746, allocations: 52.42 kB / 1.233 GB, free: 5.176 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.7747, allocations: 5.062 kB / 1.233 GB, free: 5.172 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.014e-05/0.7747, allocations: 0 / 1.233 GB, free: 5.172 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.7747, allocations: 1.25 kB / 1.233 GB, free: 5.172 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.658e-05/0.7747, allocations: 13.11 kB / 1.233 GB, free: 5.168 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001492/0.7749, allocations: 169.5 kB / 1.233 GB, free: 4.961 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 8.561e-05/0.775, allocations: 47.41 kB / 1.233 GB, free: 4.926 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.169e-05/0.775, allocations: 27.2 kB / 1.233 GB, free: 4.902 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.054e-05/0.775, allocations: 1.516 kB / 1.233 GB, free: 4.902 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.277e-05/0.7751, allocations: 35.84 kB / 1.233 GB, free: 4.859 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.152e-06/0.7751, allocations: 0 / 1.233 GB, free: 4.859 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11): time 0.0006806/0.7758, allocations: 374.4 kB / 1.234 GB, free: 4.531 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.353e-05/0.7758, allocations: 61.77 kB / 1.234 GB, free: 4.461 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.36e-05/0.7759, allocations: 95.08 kB / 1.234 GB, free: 4.359 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.602e-05/0.7759, allocations: 26.86 kB / 1.234 GB, free: 4.328 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 2.312e-05/0.7759, allocations: 80.14 kB / 1.234 GB, free: 4.246 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.087e-05/0.776, allocations: 44.16 kB / 1.234 GB, free: 4.207 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.047e-05/0.776, allocations: 26.56 kB / 1.234 GB, free: 4.184 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 8.568e-05/0.7761, allocations: 319.9 kB / 1.234 GB, free: 3.863 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.745e-05/0.7761, allocations: 19.16 kB / 1.234 GB, free: 3.855 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.775e-05/0.7762, allocations: 39.86 kB / 1.235 GB, free: 3.824 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.425e-05/0.7763, allocations: 63.92 kB / 1.235 GB, free: 3.781 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.41e-07/0.7763, allocations: 1.344 kB / 1.235 GB, free: 3.781 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001355/0.7764, allocations: 96.83 kB / 1.235 GB, free: 3.719 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.319e-05/0.7765, allocations: 5.406 kB / 1.235 GB, free: 3.719 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.927e-06/0.7765, allocations: 0 / 1.235 GB, free: 3.719 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.122e-05/0.7765, allocations: 1.094 kB / 1.235 GB, free: 3.719 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001121/0.7766, allocations: 23.08 kB / 1.235 GB, free: 3.715 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.7766, allocations: 5 kB / 1.235 GB, free: 3.711 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.537e-05/0.7766, allocations: 8.812 kB / 1.235 GB, free: 3.703 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.995e-06/0.7767, allocations: 7 kB / 1.235 GB, free: 3.699 MB / 0.9669 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.012e-05/0.7767, allocations: 117.2 kB / 1.235 GB, free: 3.578 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.461e-05/0.7768, allocations: 2.156 kB / 1.235 GB, free: 3.578 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.557e-05/0.7768, allocations: 17.08 kB / 1.235 GB, free: 3.562 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.7768, allocations: 1.031 kB / 1.235 GB, free: 3.562 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.7768, allocations: 1.062 kB / 1.235 GB, free: 3.562 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.7768, allocations: 0 / 1.235 GB, free: 3.562 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001249/0.777, allocations: 179.7 kB / 1.235 GB, free: 3.348 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.777, allocations: 0 / 1.235 GB, free: 3.348 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001201/0.7771, allocations: 18.62 kB / 1.235 GB, free: 3.348 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.7771, allocations: 1.531 kB / 1.235 GB, free: 3.348 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.085e-06/0.7771, allocations: 0 / 1.235 GB, free: 3.348 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.7771, allocations: 1.469 kB / 1.235 GB, free: 3.348 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.7771, allocations: 0 / 1.235 GB, free: 3.348 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001925/0.7773, allocations: 140.2 kB / 1.235 GB, free: 3.238 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.856e-05/0.7774, allocations: 83.2 kB / 1.235 GB, free: 3.141 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.592e-05/0.7774, allocations: 9.062 kB / 1.235 GB, free: 3.133 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.676e-05/0.7775, allocations: 3.562 kB / 1.235 GB, free: 3.133 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.737e-05/0.7775, allocations: 6.125 kB / 1.235 GB, free: 3.129 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.019e-05/0.7775, allocations: 11.14 kB / 1.235 GB, free: 3.121 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 2.87e-05/0.7776, allocations: 80.31 kB / 1.235 GB, free: 3.043 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7776, allocations: 0 / 1.235 GB, free: 3.043 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002061/0.7778, allocations: 12.88 kB / 1.235 GB, free: 3.043 MB / 0.9669 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.000386/0.7782, allocations: 0.6723 MB / 1.236 GB, free: 2.402 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001247/0.7783, allocations: 60.52 kB / 1.236 GB, free: 2.379 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.7783, allocations: 0 / 1.236 GB, free: 2.379 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 3.968e-05/0.7784, allocations: 25.88 kB / 1.236 GB, free: 2.371 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002074/0.7786, allocations: 12.75 kB / 1.236 GB, free: 2.363 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001224/0.7798, allocations: 1.453 MB / 1.238 GB, free: 0.9961 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001999/0.78, allocations: 0.6914 MB / 1.238 GB, free: 296 kB / 0.9669 GB Notification: Performance of simCode: alias equations: time 5.172e-05/0.7801, allocations: 8.797 kB / 1.238 GB, free: 292 kB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.21e-05/0.7801, allocations: 27.48 kB / 1.238 GB, free: 268 kB / 0.9669 GB Notification: Performance of SimCode: time 2.7e-07/0.7801, allocations: 0.8125 kB / 1.238 GB, free: 268 kB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2764/1.057, allocations: 1.683 MB / 1.24 GB, free: 15.37 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.16/11.22, allocations: 9.062 kB / 1.24 GB, free: 15.36 MB / 0.9825 GB (rm -f Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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