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.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.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.004799/0.004799, allocations: 102.7 kB / 15.73 MB, free: 6.035 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.001223/0.001223, allocations: 190.1 kB / 16.67 MB, free: 5.953 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.316/1.316, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.516/2.516, allocations: 461.9 MB / 0.7348 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 59.91 kB / 1.054 GB, free: 8.262 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8191/0.8204, allocations: 157.4 MB / 1.207 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002293/0.8227, allocations: 1.279 MB / 1.208 GB, free: 12.33 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.1512/0.974, allocations: 147 MB / 1.352 GB, free: 8.754 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.185e-05/0.974, allocations: 0 / 1.352 GB, free: 8.754 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 1.625e-05/0.9741, allocations: 0 / 1.352 GB, free: 8.754 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 5.519e-05/0.9742, allocations: 11.91 kB / 1.352 GB, free: 8.742 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004282/0.9746, allocations: 95.56 kB / 1.352 GB, free: 8.648 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 7.135e-05/0.9747, allocations: 31.86 kB / 1.352 GB, free: 8.617 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 3.402e-05/0.9747, allocations: 8 kB / 1.352 GB, free: 8.609 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 4.152e-05/0.9748, allocations: 19.91 kB / 1.352 GB, free: 8.59 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 5.426e-05/0.9748, allocations: 15.92 kB / 1.352 GB, free: 8.574 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 1.135e-05/0.9748, allocations: 4 kB / 1.352 GB, free: 8.57 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002476/0.9751, allocations: 71.83 kB / 1.352 GB, free: 8.5 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 1.672e-05/0.9751, allocations: 11.98 kB / 1.352 GB, free: 8.488 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 2.811e-05/0.9751, allocations: 11.94 kB / 1.352 GB, free: 8.477 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0001638/0.9753, allocations: 74.11 kB / 1.352 GB, free: 8.406 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.9753, allocations: 0 / 1.352 GB, free: 8.406 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.313e-06/0.9753, allocations: 4 kB / 1.352 GB, free: 8.402 MB / 1.076 GB Notification: Performance of Transformations before backend: time 8.686e-06/0.9754, allocations: 0 / 1.352 GB, free: 8.402 MB / 1.076 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.0003993/0.9758, allocations: 347.5 kB / 1.353 GB, free: 8.016 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 4.615e-05/0.9758, allocations: 12.03 kB / 1.353 GB, free: 8.004 MB / 1.076 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.965e-05/0.9759, allocations: 30.75 kB / 1.353 GB, free: 7.965 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001923/0.9761, allocations: 16.83 kB / 1.353 GB, free: 7.949 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001081/0.9762, allocations: 172.1 kB / 1.353 GB, free: 7.742 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.179e-05/0.9762, allocations: 8 kB / 1.353 GB, free: 7.734 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.324e-05/0.9762, allocations: 0 / 1.353 GB, free: 7.734 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001217/0.9764, allocations: 57.61 kB / 1.353 GB, free: 7.672 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.9764, allocations: 0 / 1.353 GB, free: 7.672 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.114e-05/0.9764, allocations: 4 kB / 1.353 GB, free: 7.668 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.493e-06/0.9764, allocations: 0 / 1.353 GB, free: 7.668 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.576e-05/0.9765, allocations: 15.98 kB / 1.353 GB, free: 7.652 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000169/0.9766, allocations: 169.5 kB / 1.353 GB, free: 7.438 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 8.658e-05/0.9767, allocations: 54.5 kB / 1.353 GB, free: 7.375 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.677e-05/0.9768, allocations: 16.86 kB / 1.353 GB, free: 7.355 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 1.283e-05/0.9768, allocations: 0 / 1.353 GB, free: 7.355 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.315e-05/0.9768, allocations: 38.5 kB / 1.353 GB, free: 7.309 MB / 1.076 GB Notification: Performance of pre-optimization done (n=7): time 9.91e-07/0.9768, allocations: 0 / 1.353 GB, free: 7.309 MB / 1.076 GB Notification: Performance of matching and sorting (n=11): time 0.0007215/0.9775, allocations: 374.3 kB / 1.354 GB, free: 6.891 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.152e-05/0.9776, allocations: 51.41 kB / 1.354 GB, free: 6.828 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.883e-05/0.9776, allocations: 93.86 kB / 1.354 GB, free: 6.727 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 1.759e-05/0.9777, allocations: 29.7 kB / 1.354 GB, free: 6.691 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 2.555e-05/0.9777, allocations: 84.08 kB / 1.354 GB, free: 6.605 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 3.75e-05/0.9777, allocations: 39.45 kB / 1.354 GB, free: 6.566 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.305e-05/0.9778, allocations: 25.72 kB / 1.354 GB, free: 6.535 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.000107/0.9779, allocations: 322.9 kB / 1.354 GB, free: 6.211 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.476e-05/0.978, allocations: 23.98 kB / 1.354 GB, free: 6.188 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.698e-05/0.978, allocations: 36.58 kB / 1.354 GB, free: 6.148 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.467e-05/0.9781, allocations: 62.23 kB / 1.354 GB, free: 6.082 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.62e-07/0.9781, allocations: 0 / 1.354 GB, free: 6.082 MB / 1.076 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001338/0.9783, allocations: 93.53 kB / 1.354 GB, free: 5.984 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/0.9783, allocations: 8 kB / 1.354 GB, free: 5.977 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.9783, allocations: 0 / 1.354 GB, free: 5.977 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.32e-05/0.9783, allocations: 4 kB / 1.354 GB, free: 5.973 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001167/0.9784, allocations: 23.98 kB / 1.355 GB, free: 5.949 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.693e-06/0.9784, allocations: 7.875 kB / 1.355 GB, free: 5.941 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.299e-05/0.9785, allocations: 4 kB / 1.355 GB, free: 5.938 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.776e-06/0.9785, allocations: 7.938 kB / 1.355 GB, free: 5.93 MB / 1.076 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.967e-05/0.9786, allocations: 113.8 kB / 1.355 GB, free: 5.809 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.703e-05/0.9786, allocations: 7.984 kB / 1.355 GB, free: 5.801 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.318e-05/0.9786, allocations: 11.97 kB / 1.355 GB, free: 5.789 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.9786, allocations: 0 / 1.355 GB, free: 5.789 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.9787, allocations: 4 kB / 1.355 GB, free: 5.785 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.9787, allocations: 0 / 1.355 GB, free: 5.785 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000133/0.9788, allocations: 177.6 kB / 1.355 GB, free: 5.562 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.9788, allocations: 0 / 1.355 GB, free: 5.562 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001211/0.9789, allocations: 20 kB / 1.355 GB, free: 5.543 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.9789, allocations: 4 kB / 1.355 GB, free: 5.539 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.979, allocations: 3.984 kB / 1.355 GB, free: 5.535 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.979, allocations: 7.875 kB / 1.355 GB, free: 5.527 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.979, allocations: 3.984 kB / 1.355 GB, free: 5.523 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002042/0.9792, allocations: 145 kB / 1.355 GB, free: 5.363 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 6.638e-05/0.9793, allocations: 89.05 kB / 1.355 GB, free: 5.258 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.431e-05/0.9793, allocations: 4 kB / 1.355 GB, free: 5.254 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.51e-05/0.9794, allocations: 4 kB / 1.355 GB, free: 5.25 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.579e-05/0.9794, allocations: 3.984 kB / 1.355 GB, free: 5.246 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.001e-05/0.9794, allocations: 8 kB / 1.355 GB, free: 5.238 MB / 1.076 GB Notification: Performance of sorting global known variables: time 3.105e-05/0.9794, allocations: 79.22 kB / 1.355 GB, free: 5.16 MB / 1.076 GB Notification: Performance of sort global known variables: time 4.9e-07/0.9795, allocations: 0 / 1.355 GB, free: 5.16 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002201/0.9797, allocations: 20.09 kB / 1.355 GB, free: 5.141 MB / 1.076 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.0004344/0.9801, allocations: 0.6671 MB / 1.356 GB, free: 4.441 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0001618/0.9803, allocations: 59.95 kB / 1.356 GB, free: 4.383 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.9803, allocations: 0 / 1.356 GB, free: 4.383 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 4.131e-05/0.9804, allocations: 27.92 kB / 1.356 GB, free: 4.355 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002459/0.9806, allocations: 15 kB / 1.356 GB, free: 4.344 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00142/0.9821, allocations: 1.442 MB / 1.357 GB, free: 2.816 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002289/0.9823, allocations: 0.6851 MB / 1.358 GB, free: 2.105 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 5.738e-05/0.9824, allocations: 12.66 kB / 1.358 GB, free: 2.094 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.488e-05/0.9824, allocations: 19.44 kB / 1.358 GB, free: 2.074 MB / 1.076 GB Notification: Performance of SimCode: time 2.7e-07/0.9824, allocations: 0 / 1.358 GB, free: 2.074 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01925/1.002, allocations: 1.702 MB / 1.36 GB, free: 0.5117 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.736/8.738, allocations: 18.7 kB / 1.36 GB, free: 0.4961 MB / 1.076 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[2]=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