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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.003641/0.003641, allocations: 97.41 kB / 15.73 MB, free: 6.039 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.001108/0.001108, allocations: 199.4 kB / 16.68 MB, free: 5.961 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.285/1.285, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.552/2.552, allocations: 482.6 MB / 0.755 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002662/0.002662, allocations: 67.89 kB / 1.083 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2719/0.2746, allocations: 162.3 MB / 1.242 GB, free: 9.902 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.001974/0.2766, allocations: 1.278 MB / 1.243 GB, free: 8.613 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.6065/0.8831, allocations: 147 MB / 1.387 GB, free: 7.488 MB / 1.092 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.974e-05/0.8832, allocations: 0 / 1.387 GB, free: 7.488 MB / 1.092 GB Notification: Performance of NFTyping.typeComponents: time 2.251e-05/0.8833, allocations: 6.938 kB / 1.387 GB, free: 7.484 MB / 1.092 GB Notification: Performance of NFTyping.typeBindings: time 4.269e-05/0.8833, allocations: 5.109 kB / 1.387 GB, free: 7.48 MB / 1.092 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003848/0.8837, allocations: 91.61 kB / 1.387 GB, free: 7.434 MB / 1.092 GB Notification: Performance of NFFlatten.flatten: time 6.101e-05/0.8838, allocations: 41.67 kB / 1.387 GB, free: 7.414 MB / 1.092 GB Notification: Performance of NFFlatten.resolveConnections: time 2.972e-05/0.8838, allocations: 5.469 kB / 1.387 GB, free: 7.414 MB / 1.092 GB Notification: Performance of NFEvalConstants.evaluate: time 3.427e-05/0.8838, allocations: 10.62 kB / 1.387 GB, free: 7.41 MB / 1.092 GB Notification: Performance of NFSimplifyModel.simplify: time 5.356e-05/0.8839, allocations: 21.56 kB / 1.387 GB, free: 7.398 MB / 1.092 GB Notification: Performance of NFPackage.collectConstants: time 1.063e-05/0.8839, allocations: 1.406 kB / 1.387 GB, free: 7.398 MB / 1.092 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002301/0.8842, allocations: 78.06 kB / 1.387 GB, free: 7.367 MB / 1.092 GB Notification: Performance of NFScalarize.scalarize: time 1.408e-05/0.8842, allocations: 8.938 kB / 1.387 GB, free: 7.363 MB / 1.092 GB Notification: Performance of NFVerifyModel.verify: time 2.595e-05/0.8842, allocations: 15 kB / 1.387 GB, free: 7.355 MB / 1.092 GB Notification: Performance of NFConvertDAE.convert: time 0.0001401/0.8843, allocations: 66.03 kB / 1.387 GB, free: 7.336 MB / 1.092 GB Notification: Performance of FrontEnd - DAE generated: time 2.886e-06/0.8844, allocations: 0 / 1.387 GB, free: 7.336 MB / 1.092 GB Notification: Performance of FrontEnd: time 1.202e-06/0.8844, allocations: 4.938 kB / 1.387 GB, free: 7.332 MB / 1.092 GB Notification: Performance of Transformations before backend: time 4.488e-06/0.8844, allocations: 0 / 1.387 GB, free: 7.332 MB / 1.092 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.0003853/0.8848, allocations: 355.1 kB / 1.387 GB, free: 6.961 MB / 1.092 GB Notification: Performance of prepare preOptimizeDAE: time 3.396e-05/0.8848, allocations: 10.34 kB / 1.387 GB, free: 6.961 MB / 1.092 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.622e-05/0.8848, allocations: 41.72 kB / 1.387 GB, free: 6.914 MB / 1.092 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001574/0.885, allocations: 10.14 kB / 1.387 GB, free: 6.914 MB / 1.092 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001127/0.8851, allocations: 163.9 kB / 1.388 GB, free: 6.719 MB / 1.092 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.401e-05/0.8852, allocations: 6.281 kB / 1.388 GB, free: 6.715 MB / 1.092 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.537e-05/0.8852, allocations: 18.7 kB / 1.388 GB, free: 6.699 MB / 1.092 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001042/0.8853, allocations: 47.36 kB / 1.388 GB, free: 6.664 MB / 1.092 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.623e-06/0.8853, allocations: 1.875 kB / 1.388 GB, free: 6.664 MB / 1.092 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.073e-05/0.8853, allocations: 5.188 kB / 1.388 GB, free: 6.66 MB / 1.092 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.8853, allocations: 0 / 1.388 GB, free: 6.66 MB / 1.092 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.666e-05/0.8854, allocations: 18.11 kB / 1.388 GB, free: 6.656 MB / 1.092 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001727/0.8856, allocations: 170.1 kB / 1.388 GB, free: 6.453 MB / 1.092 GB Notification: Performance of preOpt comSubExp (simulation): time 8.473e-05/0.8856, allocations: 53.08 kB / 1.388 GB, free: 6.418 MB / 1.092 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.65e-05/0.8857, allocations: 15.55 kB / 1.388 GB, free: 6.406 MB / 1.092 GB Notification: Performance of preOpt evalFunc (simulation): time 1.071e-05/0.8857, allocations: 2.141 kB / 1.388 GB, free: 6.406 MB / 1.092 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.904e-05/0.8857, allocations: 35.64 kB / 1.388 GB, free: 6.363 MB / 1.092 GB Notification: Performance of pre-optimization done (n=7): time 9.41e-07/0.8857, allocations: 1.688 kB / 1.388 GB, free: 6.363 MB / 1.092 GB Notification: Performance of matching and sorting (n=11): time 0.0006715/0.8864, allocations: 372.6 kB / 1.388 GB, free: 6.059 MB / 1.092 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.394e-05/0.8865, allocations: 56.69 kB / 1.388 GB, free: 5.992 MB / 1.092 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.359e-05/0.8865, allocations: 97.47 kB / 1.388 GB, free: 5.891 MB / 1.092 GB Notification: Performance of collectPreVariables (initialization): time 2.043e-05/0.8866, allocations: 26.98 kB / 1.388 GB, free: 5.859 MB / 1.092 GB Notification: Performance of collectInitialEqns (initialization): time 3.407e-05/0.8866, allocations: 80.14 kB / 1.388 GB, free: 5.777 MB / 1.092 GB Notification: Performance of collectInitialBindings (initialization): time 4.457e-05/0.8866, allocations: 46.58 kB / 1.389 GB, free: 5.738 MB / 1.092 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.084e-05/0.8867, allocations: 25.69 kB / 1.389 GB, free: 5.715 MB / 1.092 GB Notification: Performance of setup shared object (initialization): time 0.0001168/0.8868, allocations: 323.8 kB / 1.389 GB, free: 5.391 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.456e-05/0.8868, allocations: 22.86 kB / 1.389 GB, free: 5.379 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.794e-05/0.8869, allocations: 36.3 kB / 1.389 GB, free: 5.352 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.086e-05/0.887, allocations: 70.17 kB / 1.389 GB, free: 5.305 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.11e-07/0.887, allocations: 0 / 1.389 GB, free: 5.305 MB / 1.092 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001239/0.8871, allocations: 86.47 kB / 1.389 GB, free: 5.254 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 1.121e-05/0.8871, allocations: 4.844 kB / 1.389 GB, free: 5.254 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.8871, allocations: 1.156 kB / 1.389 GB, free: 5.254 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.132e-05/0.8872, allocations: 1.281 kB / 1.389 GB, free: 5.254 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.931e-05/0.8873, allocations: 25.55 kB / 1.389 GB, free: 5.246 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.79e-06/0.8873, allocations: 6.25 kB / 1.389 GB, free: 5.242 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.993e-05/0.8873, allocations: 5.094 kB / 1.389 GB, free: 5.238 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.061e-06/0.8873, allocations: 5.203 kB / 1.389 GB, free: 5.238 MB / 1.092 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 8.144e-05/0.8874, allocations: 116.2 kB / 1.389 GB, free: 5.117 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.465e-05/0.8874, allocations: 6.766 kB / 1.389 GB, free: 5.113 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.29e-05/0.8875, allocations: 13.23 kB / 1.389 GB, free: 5.102 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.8875, allocations: 1.188 kB / 1.389 GB, free: 5.102 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.8875, allocations: 0 / 1.389 GB, free: 5.102 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.8875, allocations: 5.062 kB / 1.389 GB, free: 5.098 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001317/0.8876, allocations: 180.1 kB / 1.389 GB, free: 4.883 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.8876, allocations: 0 / 1.389 GB, free: 4.883 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001073/0.8877, allocations: 23.28 kB / 1.389 GB, free: 4.879 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.8878, allocations: 1.219 kB / 1.389 GB, free: 4.879 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.615e-06/0.8878, allocations: 1.094 kB / 1.389 GB, free: 4.879 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.8878, allocations: 3.984 kB / 1.389 GB, free: 4.875 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.8878, allocations: 1.375 kB / 1.389 GB, free: 4.875 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001819/0.888, allocations: 132.1 kB / 1.39 GB, free: 4.773 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 6.715e-05/0.888, allocations: 92.81 kB / 1.39 GB, free: 4.668 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.248e-05/0.8881, allocations: 1.375 kB / 1.39 GB, free: 4.668 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.557e-05/0.8881, allocations: 5.438 kB / 1.39 GB, free: 4.664 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.112e-05/0.8882, allocations: 8.391 kB / 1.39 GB, free: 4.66 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.963e-06/0.8882, allocations: 6.594 kB / 1.39 GB, free: 4.656 MB / 1.092 GB Notification: Performance of sorting global known variables: time 3.353e-05/0.8882, allocations: 79.28 kB / 1.39 GB, free: 4.578 MB / 1.092 GB Notification: Performance of sort global known variables: time 1.11e-07/0.8882, allocations: 1.531 kB / 1.39 GB, free: 4.578 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.000179/0.8884, allocations: 15.88 kB / 1.39 GB, free: 4.574 MB / 1.092 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.000413/0.8888, allocations: 0.6696 MB / 1.39 GB, free: 3.938 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.0001138/0.8889, allocations: 55.56 kB / 1.39 GB, free: 3.918 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.889, allocations: 0 / 1.39 GB, free: 3.918 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 3.642e-05/0.889, allocations: 35.73 kB / 1.391 GB, free: 3.902 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001957/0.8892, allocations: 7.766 kB / 1.391 GB, free: 3.898 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001264/0.8905, allocations: 1.456 MB / 1.392 GB, free: 2.535 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000262/0.8907, allocations: 0.6868 MB / 1.393 GB, free: 1.832 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 5.045e-05/0.8908, allocations: 13.59 kB / 1.393 GB, free: 1.824 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.789e-05/0.8908, allocations: 15.34 kB / 1.393 GB, free: 1.812 MB / 1.092 GB Notification: Performance of SimCode: time 3e-07/0.8908, allocations: 0 / 1.393 GB, free: 1.812 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.621/3.512, allocations: 1.697 MB / 1.394 GB, free: 0.9336 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.24/18.75, allocations: 9.922 kB / 1.394 GB, free: 0.9258 MB / 1.092 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=400 --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