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.001318/0.001318, allocations: 116.1 kB / 17.17 MB, free: 6 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.001443/0.001443, allocations: 209.5 kB / 20.13 MB, free: 3.055 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.431/1.431, allocations: 230.6 MB / 253.5 MB, free: 15.11 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 2.825/2.825, allocations: 0.49 GB / 0.7923 GB, free: 1.461 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_12_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="cs",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.002004/0.002004, allocations: 63.91 kB / 1.149 GB, free: 15.47 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9503/0.9523, allocations: 176.1 MB / 1.321 GB, free: 24.8 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.00201/0.9543, allocations: 1.298 MB / 1.323 GB, free: 23.89 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.1814/1.136, allocations: 150.3 MB / 1.469 GB, free: 10.23 MB / 1.154 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.227e-05/1.136, allocations: 0 / 1.469 GB, free: 10.23 MB / 1.154 GB Notification: Performance of NFTyping.typeComponents: time 2.411e-05/1.136, allocations: 7.922 kB / 1.469 GB, free: 10.22 MB / 1.154 GB Notification: Performance of NFTyping.typeBindings: time 4.868e-05/1.136, allocations: 5.531 kB / 1.469 GB, free: 10.21 MB / 1.154 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003783/1.136, allocations: 95.25 kB / 1.47 GB, free: 10.14 MB / 1.154 GB Notification: Performance of NFFlatten.flatten: time 7.555e-05/1.136, allocations: 35.22 kB / 1.47 GB, free: 10.12 MB / 1.154 GB Notification: Performance of NFFlatten.resolveConnections: time 3.13e-05/1.136, allocations: 1.531 kB / 1.47 GB, free: 10.12 MB / 1.154 GB Notification: Performance of NFEvalConstants.evaluate: time 4.502e-05/1.136, allocations: 20.8 kB / 1.47 GB, free: 10.11 MB / 1.154 GB Notification: Performance of NFSimplifyModel.simplify: time 5.997e-05/1.136, allocations: 17.12 kB / 1.47 GB, free: 10.1 MB / 1.154 GB Notification: Performance of NFPackage.collectConstants: time 1.092e-05/1.136, allocations: 2.594 kB / 1.47 GB, free: 10.1 MB / 1.154 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002368/1.137, allocations: 74.38 kB / 1.47 GB, free: 10.06 MB / 1.154 GB Notification: Performance of NFScalarize.scalarize: time 1.756e-05/1.137, allocations: 9.266 kB / 1.47 GB, free: 10.05 MB / 1.154 GB Notification: Performance of NFVerifyModel.verify: time 2.782e-05/1.137, allocations: 19.05 kB / 1.47 GB, free: 10.04 MB / 1.154 GB Notification: Performance of NFConvertDAE.convert: time 0.0001441/1.137, allocations: 66.02 kB / 1.47 GB, free: 10.01 MB / 1.154 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/1.137, allocations: 3.938 kB / 1.47 GB, free: 10.01 MB / 1.154 GB Notification: Performance of FrontEnd: time 1.172e-06/1.137, allocations: 1.188 kB / 1.47 GB, free: 10.01 MB / 1.154 GB Notification: Performance of Transformations before backend: time 8.947e-06/1.137, allocations: 0 / 1.47 GB, free: 10.01 MB / 1.154 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.0004332/1.137, allocations: 353.6 kB / 1.47 GB, free: 9.633 MB / 1.154 GB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/1.137, allocations: 13.89 kB / 1.47 GB, free: 9.629 MB / 1.154 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.101e-05/1.137, allocations: 192 / 1.47 GB, free: 9.629 MB / 1.154 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.413e-05/1.137, allocations: 41.39 kB / 1.47 GB, free: 9.582 MB / 1.154 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001675/1.138, allocations: 12.78 kB / 1.47 GB, free: 9.578 MB / 1.154 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001314/1.138, allocations: 175.9 kB / 1.47 GB, free: 9.367 MB / 1.154 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.078e-05/1.138, allocations: 1.594 kB / 1.47 GB, free: 9.367 MB / 1.154 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.442e-05/1.138, allocations: 8.5 kB / 1.47 GB, free: 9.363 MB / 1.154 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000111/1.138, allocations: 44.34 kB / 1.47 GB, free: 9.324 MB / 1.154 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.845e-06/1.138, allocations: 0 / 1.47 GB, free: 9.324 MB / 1.154 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.598e-06/1.138, allocations: 1.406 kB / 1.47 GB, free: 9.324 MB / 1.154 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/1.138, allocations: 1.375 kB / 1.47 GB, free: 9.324 MB / 1.154 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.578e-05/1.138, allocations: 17.39 kB / 1.47 GB, free: 9.316 MB / 1.154 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001865/1.138, allocations: 184.9 kB / 1.471 GB, free: 9.094 MB / 1.154 GB Notification: Performance of preOpt comSubExp (simulation): time 8.955e-05/1.138, allocations: 45.09 kB / 1.471 GB, free: 9.059 MB / 1.154 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.963e-05/1.138, allocations: 18.58 kB / 1.471 GB, free: 9.043 MB / 1.154 GB Notification: Performance of preOpt evalFunc (simulation): time 1.158e-05/1.138, allocations: 1 kB / 1.471 GB, free: 9.043 MB / 1.154 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.575e-05/1.138, allocations: 35.56 kB / 1.471 GB, free: 9 MB / 1.154 GB Notification: Performance of pre-optimization done (n=7): time 9.21e-07/1.138, allocations: 0 / 1.471 GB, free: 9 MB / 1.154 GB Notification: Performance of matching and sorting (n=11): time 0.0007148/1.139, allocations: 379.2 kB / 1.471 GB, free: 8.668 MB / 1.154 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.615e-05/1.139, allocations: 56.66 kB / 1.471 GB, free: 8.602 MB / 1.154 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.27e-05/1.139, allocations: 91.05 kB / 1.471 GB, free: 8.504 MB / 1.154 GB Notification: Performance of collectPreVariables (initialization): time 2.075e-05/1.139, allocations: 30.89 kB / 1.471 GB, free: 8.469 MB / 1.154 GB Notification: Performance of collectInitialEqns (initialization): time 3.472e-05/1.139, allocations: 81.77 kB / 1.471 GB, free: 8.387 MB / 1.154 GB Notification: Performance of collectInitialBindings (initialization): time 4.075e-05/1.139, allocations: 39.75 kB / 1.471 GB, free: 8.352 MB / 1.154 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.306e-05/1.139, allocations: 33.98 kB / 1.471 GB, free: 8.32 MB / 1.154 GB Notification: Performance of setup shared object (initialization): time 0.0001431/1.139, allocations: 323.9 kB / 1.472 GB, free: 7.996 MB / 1.154 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.544e-05/1.139, allocations: 19.55 kB / 1.472 GB, free: 7.988 MB / 1.154 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.966e-05/1.139, allocations: 35.98 kB / 1.472 GB, free: 7.961 MB / 1.154 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.908e-05/1.14, allocations: 51.72 kB / 1.472 GB, free: 7.93 MB / 1.154 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.22e-07/1.14, allocations: 0 / 1.472 GB, free: 7.93 MB / 1.154 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001314/1.14, allocations: 101.4 kB / 1.472 GB, free: 7.863 MB / 1.154 GB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/1.14, allocations: 5.75 kB / 1.472 GB, free: 7.863 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.617e-06/1.14, allocations: 4 kB / 1.472 GB, free: 7.859 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/1.14, allocations: 1.656 kB / 1.472 GB, free: 7.859 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001084/1.14, allocations: 22.84 kB / 1.472 GB, free: 7.855 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.03e-06/1.14, allocations: 1.531 kB / 1.472 GB, free: 7.855 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.686e-05/1.14, allocations: 7.938 kB / 1.472 GB, free: 7.848 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.426e-06/1.14, allocations: 7.641 kB / 1.472 GB, free: 7.844 MB / 1.154 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 9.205e-05/1.14, allocations: 114.4 kB / 1.472 GB, free: 7.727 MB / 1.154 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.818e-05/1.14, allocations: 6.703 kB / 1.472 GB, free: 7.723 MB / 1.154 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.58e-05/1.14, allocations: 17.03 kB / 1.472 GB, free: 7.707 MB / 1.154 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/1.14, allocations: 1.406 kB / 1.472 GB, free: 7.707 MB / 1.154 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/1.14, allocations: 4 kB / 1.472 GB, free: 7.703 MB / 1.154 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/1.14, allocations: 5.406 kB / 1.472 GB, free: 7.699 MB / 1.154 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001512/1.14, allocations: 174.6 kB / 1.472 GB, free: 7.488 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/1.14, allocations: 1.375 kB / 1.472 GB, free: 7.488 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001196/1.14, allocations: 25.48 kB / 1.472 GB, free: 7.48 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/1.14, allocations: 0 / 1.472 GB, free: 7.48 MB / 1.154 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.698e-06/1.14, allocations: 5.5 kB / 1.472 GB, free: 7.477 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/1.14, allocations: 1.156 kB / 1.472 GB, free: 7.477 MB / 1.154 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/1.14, allocations: 0 / 1.472 GB, free: 7.477 MB / 1.154 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001899/1.141, allocations: 127.6 kB / 1.472 GB, free: 7.379 MB / 1.154 GB Notification: Performance of postOpt removeConstants (simulation): time 8.401e-05/1.141, allocations: 92.84 kB / 1.473 GB, free: 7.273 MB / 1.154 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.353e-05/1.141, allocations: 1.312 kB / 1.473 GB, free: 7.273 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.28e-05/1.141, allocations: 2.875 kB / 1.473 GB, free: 7.273 MB / 1.154 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.39e-05/1.141, allocations: 9.891 kB / 1.473 GB, free: 7.266 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.06e-05/1.141, allocations: 11.72 kB / 1.473 GB, free: 7.258 MB / 1.154 GB Notification: Performance of sorting global known variables: time 3.911e-05/1.141, allocations: 80.56 kB / 1.473 GB, free: 7.18 MB / 1.154 GB Notification: Performance of sort global known variables: time 7e-08/1.141, allocations: 0 / 1.473 GB, free: 7.18 MB / 1.154 GB Notification: Performance of remove unused functions: time 0.0001996/1.141, allocations: 15.66 kB / 1.473 GB, free: 7.176 MB / 1.154 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.0004839/1.141, allocations: 0.6706 MB / 1.473 GB, free: 6.539 MB / 1.154 GB Notification: Performance of simCode: created initialization part: time 0.0001311/1.142, allocations: 56.95 kB / 1.473 GB, free: 6.516 MB / 1.154 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/1.142, allocations: 4.094 kB / 1.473 GB, free: 6.512 MB / 1.154 GB Notification: Performance of simCode: created simulation system equations: time 4.049e-05/1.142, allocations: 28.98 kB / 1.473 GB, free: 6.5 MB / 1.154 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002192/1.142, allocations: 17.7 kB / 1.473 GB, free: 6.488 MB / 1.154 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001435/1.143, allocations: 1.449 MB / 1.475 GB, free: 5.125 MB / 1.154 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003042/1.144, allocations: 0.684 MB / 1.475 GB, free: 4.426 MB / 1.154 GB Notification: Performance of simCode: alias equations: time 4.911e-05/1.144, allocations: 12.66 kB / 1.475 GB, free: 4.418 MB / 1.154 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.014e-05/1.144, allocations: 16.22 kB / 1.475 GB, free: 4.406 MB / 1.154 GB Notification: Performance of SimCode: time 2.9e-07/1.144, allocations: 0 / 1.475 GB, free: 4.406 MB / 1.154 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01891/1.163, allocations: 1.747 MB / 1.477 GB, free: 3.504 MB / 1.154 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.977/9.14, allocations: 10.06 kB / 1.477 GB, free: 3.5 MB / 1.154 GB " [Timeout remaining time 291] (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: 15.296888242010027]