Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001591/0.001591, allocations: 110.4 kB / 18.94 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001908/0.001908, allocations: 216.9 kB / 22.26 MB, free: 5.125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.507/1.507, allocations: 230.6 MB / 256 MB, free: 7.98 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.254/3.254, allocations: 0.49 GB / 0.7951 GB, free: 33.32 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_12_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_12_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002215/0.002215, allocations: 74.67 kB / 1.154 GB, free: 25.68 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3743/0.3765, allocations: 176.1 MB / 1.326 GB, free: 1.965 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002595/0.3791, allocations: 1.3 MB / 1.327 GB, free: 0.6562 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.1875/0.5666, allocations: 150.3 MB / 1.474 GB, free: 9.766 MB / 1.17 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.904e-05/0.5666, allocations: 0 / 1.474 GB, free: 9.766 MB / 1.17 GB Notification: Performance of NFTyping.typeComponents: time 2.571e-05/0.5666, allocations: 3.984 kB / 1.474 GB, free: 9.762 MB / 1.17 GB Notification: Performance of NFTyping.typeBindings: time 6.288e-05/0.5667, allocations: 7.922 kB / 1.474 GB, free: 9.754 MB / 1.17 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005324/0.5672, allocations: 99.56 kB / 1.474 GB, free: 9.656 MB / 1.17 GB Notification: Performance of NFFlatten.flatten: time 9.836e-05/0.5673, allocations: 27.92 kB / 1.474 GB, free: 9.629 MB / 1.17 GB Notification: Performance of NFFlatten.resolveConnections: time 4.155e-05/0.5674, allocations: 4 kB / 1.474 GB, free: 9.625 MB / 1.17 GB Notification: Performance of NFEvalConstants.evaluate: time 5.225e-05/0.5674, allocations: 23.91 kB / 1.474 GB, free: 9.602 MB / 1.17 GB Notification: Performance of NFSimplifyModel.simplify: time 6.175e-05/0.5675, allocations: 7.984 kB / 1.474 GB, free: 9.594 MB / 1.17 GB Notification: Performance of NFPackage.collectConstants: time 1.119e-05/0.5675, allocations: 3.938 kB / 1.474 GB, free: 9.59 MB / 1.17 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003688/0.5679, allocations: 79.83 kB / 1.474 GB, free: 9.512 MB / 1.17 GB Notification: Performance of NFScalarize.scalarize: time 2.275e-05/0.5679, allocations: 15.92 kB / 1.474 GB, free: 9.496 MB / 1.17 GB Notification: Performance of NFVerifyModel.verify: time 3.004e-05/0.5679, allocations: 15.88 kB / 1.474 GB, free: 9.48 MB / 1.17 GB Notification: Performance of NFConvertDAE.convert: time 0.0001893/0.5681, allocations: 72.08 kB / 1.474 GB, free: 9.41 MB / 1.17 GB Notification: Performance of FrontEnd - DAE generated: time 7.675e-06/0.5681, allocations: 4 kB / 1.474 GB, free: 9.406 MB / 1.17 GB Notification: Performance of FrontEnd: time 1.823e-06/0.5681, allocations: 3.938 kB / 1.474 GB, free: 9.402 MB / 1.17 GB Notification: Performance of Transformations before backend: time 5.27e-06/0.5681, allocations: 0 / 1.474 GB, free: 9.402 MB / 1.17 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.0004711/0.5686, allocations: 270.2 kB / 1.475 GB, free: 9.109 MB / 1.17 GB Notification: Performance of prepare preOptimizeDAE: time 4.682e-05/0.5686, allocations: 12.03 kB / 1.475 GB, free: 9.098 MB / 1.17 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.065e-05/0.5687, allocations: 30.75 kB / 1.475 GB, free: 9.059 MB / 1.17 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002026/0.5689, allocations: 12.92 kB / 1.475 GB, free: 9.047 MB / 1.17 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001174/0.569, allocations: 122.2 kB / 1.475 GB, free: 8.902 MB / 1.17 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.299e-05/0.569, allocations: 0 / 1.475 GB, free: 8.902 MB / 1.17 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.712e-05/0.569, allocations: 4 kB / 1.475 GB, free: 8.898 MB / 1.17 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001376/0.5692, allocations: 61.59 kB / 1.475 GB, free: 8.832 MB / 1.17 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.774e-06/0.5692, allocations: 0 / 1.475 GB, free: 8.832 MB / 1.17 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.307e-06/0.5692, allocations: 0 / 1.475 GB, free: 8.832 MB / 1.17 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.5692, allocations: 0 / 1.475 GB, free: 8.832 MB / 1.17 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.273e-05/0.5693, allocations: 19.98 kB / 1.475 GB, free: 8.812 MB / 1.17 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000187/0.5694, allocations: 140.6 kB / 1.475 GB, free: 8.633 MB / 1.17 GB Notification: Performance of preOpt comSubExp (simulation): time 9.278e-05/0.5695, allocations: 50.5 kB / 1.475 GB, free: 8.574 MB / 1.17 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.612e-05/0.5696, allocations: 20.84 kB / 1.475 GB, free: 8.551 MB / 1.17 GB Notification: Performance of preOpt evalFunc (simulation): time 1.258e-05/0.5696, allocations: 0 / 1.475 GB, free: 8.551 MB / 1.17 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.022e-05/0.5696, allocations: 30.56 kB / 1.475 GB, free: 8.512 MB / 1.17 GB Notification: Performance of pre-optimization done (n=7): time 1.042e-06/0.5696, allocations: 0 / 1.475 GB, free: 8.512 MB / 1.17 GB Notification: Performance of matching and sorting (n=11): time 0.0007399/0.5704, allocations: 302.2 kB / 1.475 GB, free: 8.184 MB / 1.17 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.701e-05/0.5704, allocations: 59.39 kB / 1.475 GB, free: 8.113 MB / 1.17 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.493e-05/0.5705, allocations: 89.86 kB / 1.475 GB, free: 8.016 MB / 1.17 GB Notification: Performance of collectPreVariables (initialization): time 2.235e-05/0.5705, allocations: 29.7 kB / 1.475 GB, free: 7.98 MB / 1.17 GB Notification: Performance of collectInitialEqns (initialization): time 4.734e-05/0.5705, allocations: 84.14 kB / 1.476 GB, free: 7.895 MB / 1.17 GB Notification: Performance of collectInitialBindings (initialization): time 4.288e-05/0.5706, allocations: 35.69 kB / 1.476 GB, free: 7.859 MB / 1.17 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.959e-05/0.5706, allocations: 25.72 kB / 1.476 GB, free: 7.828 MB / 1.17 GB Notification: Performance of setup shared object (initialization): time 0.0002459/0.5709, allocations: 322.9 kB / 1.476 GB, free: 7.504 MB / 1.17 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.562e-05/0.5709, allocations: 20 kB / 1.476 GB, free: 7.484 MB / 1.17 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001167/0.571, allocations: 41.64 kB / 1.476 GB, free: 7.438 MB / 1.17 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.361e-05/0.5711, allocations: 62.23 kB / 1.476 GB, free: 7.371 MB / 1.17 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.42e-07/0.5711, allocations: 0 / 1.476 GB, free: 7.371 MB / 1.17 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001474/0.5713, allocations: 97.56 kB / 1.476 GB, free: 7.27 MB / 1.17 GB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.5713, allocations: 8 kB / 1.476 GB, free: 7.262 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.5713, allocations: 0 / 1.476 GB, free: 7.262 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.5713, allocations: 0 / 1.476 GB, free: 7.262 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001241/0.5714, allocations: 27.98 kB / 1.476 GB, free: 7.234 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.59e-06/0.5714, allocations: 0 / 1.476 GB, free: 7.234 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.553e-05/0.5715, allocations: 7.938 kB / 1.476 GB, free: 7.227 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.011e-05/0.5715, allocations: 7.938 kB / 1.476 GB, free: 7.219 MB / 1.17 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.863e-05/0.5716, allocations: 118.3 kB / 1.476 GB, free: 7.094 MB / 1.17 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.417e-05/0.5716, allocations: 0 / 1.476 GB, free: 7.094 MB / 1.17 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.945e-05/0.5716, allocations: 15.91 kB / 1.476 GB, free: 7.074 MB / 1.17 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.5716, allocations: 3.984 kB / 1.476 GB, free: 7.07 MB / 1.17 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.5716, allocations: 0 / 1.476 GB, free: 7.07 MB / 1.17 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.5716, allocations: 4 kB / 1.476 GB, free: 7.066 MB / 1.17 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001475/0.5718, allocations: 144.7 kB / 1.476 GB, free: 6.883 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.5718, allocations: 3.938 kB / 1.476 GB, free: 6.879 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001225/0.5719, allocations: 19.98 kB / 1.476 GB, free: 6.859 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.13e-06/0.5719, allocations: 4 kB / 1.477 GB, free: 6.855 MB / 1.17 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.026e-06/0.5719, allocations: 0 / 1.477 GB, free: 6.855 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.5719, allocations: 0 / 1.477 GB, free: 6.855 MB / 1.17 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.5719, allocations: 0 / 1.477 GB, free: 6.855 MB / 1.17 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003049/0.5722, allocations: 148.4 kB / 1.477 GB, free: 6.695 MB / 1.17 GB Notification: Performance of postOpt removeConstants (simulation): time 4.744e-05/0.5723, allocations: 11.95 kB / 1.477 GB, free: 6.684 MB / 1.17 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.397e-05/0.5723, allocations: 0 / 1.477 GB, free: 6.684 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.938e-05/0.5724, allocations: 8.031 kB / 1.477 GB, free: 6.676 MB / 1.17 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.268e-05/0.5724, allocations: 7.984 kB / 1.477 GB, free: 6.668 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.05e-05/0.5724, allocations: 8 kB / 1.477 GB, free: 6.66 MB / 1.17 GB Notification: Performance of sorting global known variables: time 4.128e-05/0.5724, allocations: 83.16 kB / 1.477 GB, free: 6.578 MB / 1.17 GB Notification: Performance of sort global known variables: time 9e-08/0.5724, allocations: 0 / 1.477 GB, free: 6.578 MB / 1.17 GB Notification: Performance of remove unused functions: time 0.0002038/0.5726, allocations: 16 kB / 1.477 GB, free: 6.562 MB / 1.17 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.0005194/0.5732, allocations: 0.6672 MB / 1.477 GB, free: 5.863 MB / 1.17 GB Notification: Performance of simCode: created initialization part: time 0.0001462/0.5733, allocations: 59.89 kB / 1.477 GB, free: 5.805 MB / 1.17 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.5733, allocations: 0 / 1.477 GB, free: 5.805 MB / 1.17 GB Notification: Performance of simCode: created simulation system equations: time 3.964e-05/0.5734, allocations: 23.98 kB / 1.478 GB, free: 5.781 MB / 1.17 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002275/0.5736, allocations: 9.75 kB / 1.478 GB, free: 5.773 MB / 1.17 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001576/0.5752, allocations: 1.451 MB / 1.479 GB, free: 4.234 MB / 1.17 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003801/0.5755, allocations: 0.6807 MB / 1.48 GB, free: 3.527 MB / 1.17 GB Notification: Performance of simCode: alias equations: time 6.029e-05/0.5756, allocations: 12.66 kB / 1.48 GB, free: 3.516 MB / 1.17 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.026e-05/0.5756, allocations: 19.44 kB / 1.48 GB, free: 3.496 MB / 1.17 GB Notification: Performance of SimCode: time 4.51e-07/0.5756, allocations: 0 / 1.48 GB, free: 3.496 MB / 1.17 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03229/0.6079, allocations: 1.846 MB / 1.481 GB, free: 1.785 MB / 1.17 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.84, allocations: 8.797 kB / 1.481 GB, free: 1.781 MB / 1.17 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_12_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_12_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_12_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat --tempDir=temp_Buildings_12_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-08 Buildings_12_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > Buildings_12_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.610897155944258]