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.001816/0.001816, allocations: 95.64 kB / 18.95 MB, free: 2.691 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.002268/0.002268, allocations: 213.7 kB / 22.24 MB, free: 5.238 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.475/1.475, allocations: 230.6 MB / 256 MB, free: 7.809 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.4/3.4, allocations: 0.4892 GB / 0.7943 GB, free: 35.51 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.002112/0.002112, allocations: 70.27 kB / 1.153 GB, free: 25.86 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3949/0.397, allocations: 176.1 MB / 1.325 GB, free: 2.41 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002651/0.3996, allocations: 1.285 MB / 1.326 GB, free: 1.117 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.1797/0.5793, allocations: 129 MB / 1.452 GB, free: 15.57 MB / 1.154 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.002e-05/0.5794, allocations: 0 / 1.452 GB, free: 15.57 MB / 1.154 GB Notification: Performance of NFTyping.typeComponents: time 3.006e-05/0.5794, allocations: 3.984 kB / 1.452 GB, free: 15.57 MB / 1.154 GB Notification: Performance of NFTyping.typeBindings: time 5.19e-05/0.5795, allocations: 7.922 kB / 1.452 GB, free: 15.56 MB / 1.154 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004535/0.5799, allocations: 95.52 kB / 1.452 GB, free: 15.47 MB / 1.154 GB Notification: Performance of NFFlatten.flatten: time 7.827e-05/0.58, allocations: 31.92 kB / 1.452 GB, free: 15.44 MB / 1.154 GB Notification: Performance of NFFlatten.resolveConnections: time 4.001e-05/0.58, allocations: 11.97 kB / 1.452 GB, free: 15.43 MB / 1.154 GB Notification: Performance of NFEvalConstants.evaluate: time 4.432e-05/0.5801, allocations: 11.94 kB / 1.452 GB, free: 15.41 MB / 1.154 GB Notification: Performance of NFSimplifyModel.simplify: time 6.117e-05/0.5801, allocations: 15.92 kB / 1.452 GB, free: 15.4 MB / 1.154 GB Notification: Performance of NFPackage.collectConstants: time 1.22e-05/0.5801, allocations: 0 / 1.452 GB, free: 15.4 MB / 1.154 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002432/0.5804, allocations: 75.83 kB / 1.453 GB, free: 15.32 MB / 1.154 GB Notification: Performance of NFScalarize.scalarize: time 1.949e-05/0.5804, allocations: 11.98 kB / 1.453 GB, free: 15.31 MB / 1.154 GB Notification: Performance of NFVerifyModel.verify: time 3.037e-05/0.5804, allocations: 15.92 kB / 1.453 GB, free: 15.3 MB / 1.154 GB Notification: Performance of NFConvertDAE.convert: time 0.0001645/0.5806, allocations: 68.03 kB / 1.453 GB, free: 15.23 MB / 1.154 GB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.5806, allocations: 8 kB / 1.453 GB, free: 15.22 MB / 1.154 GB Notification: Performance of FrontEnd: time 1.774e-06/0.5806, allocations: 0 / 1.453 GB, free: 15.22 MB / 1.154 GB Notification: Performance of Transformations before backend: time 5.22e-06/0.5806, allocations: 0 / 1.453 GB, free: 15.22 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.0003974/0.581, allocations: 270.2 kB / 1.453 GB, free: 14.93 MB / 1.154 GB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.5811, allocations: 8.031 kB / 1.453 GB, free: 14.92 MB / 1.154 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.246e-05/0.5811, allocations: 34.75 kB / 1.453 GB, free: 14.88 MB / 1.154 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001886/0.5813, allocations: 12.92 kB / 1.453 GB, free: 14.87 MB / 1.154 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001099/0.5814, allocations: 114.2 kB / 1.453 GB, free: 14.73 MB / 1.154 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.208e-05/0.5814, allocations: 0 / 1.453 GB, free: 14.73 MB / 1.154 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.335e-05/0.5814, allocations: 11.94 kB / 1.453 GB, free: 14.72 MB / 1.154 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001785/0.5816, allocations: 138.8 kB / 1.453 GB, free: 14.56 MB / 1.154 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.705e-06/0.5816, allocations: 0 / 1.453 GB, free: 14.56 MB / 1.154 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.859e-06/0.5816, allocations: 0 / 1.453 GB, free: 14.56 MB / 1.154 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.182e-06/0.5816, allocations: 4 kB / 1.453 GB, free: 14.55 MB / 1.154 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.703e-05/0.5817, allocations: 11.98 kB / 1.453 GB, free: 14.54 MB / 1.154 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001781/0.5819, allocations: 140.6 kB / 1.453 GB, free: 14.36 MB / 1.154 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001076/0.582, allocations: 58.5 kB / 1.453 GB, free: 14.3 MB / 1.154 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.004e-05/0.582, allocations: 12.86 kB / 1.453 GB, free: 14.28 MB / 1.154 GB Notification: Performance of preOpt evalFunc (simulation): time 8.145e-06/0.582, allocations: 0 / 1.453 GB, free: 14.28 MB / 1.154 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.495e-05/0.582, allocations: 38.55 kB / 1.453 GB, free: 14.23 MB / 1.154 GB Notification: Performance of pre-optimization done (n=7): time 9.41e-07/0.582, allocations: 4 kB / 1.453 GB, free: 14.23 MB / 1.154 GB Notification: Performance of matching and sorting (n=11): time 0.0007176/0.5828, allocations: 293.5 kB / 1.454 GB, free: 13.91 MB / 1.154 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.494e-05/0.5828, allocations: 51.41 kB / 1.454 GB, free: 13.85 MB / 1.154 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.627e-05/0.5829, allocations: 97.86 kB / 1.454 GB, free: 13.74 MB / 1.154 GB Notification: Performance of collectPreVariables (initialization): time 2.12e-05/0.5829, allocations: 25.7 kB / 1.454 GB, free: 13.71 MB / 1.154 GB Notification: Performance of collectInitialEqns (initialization): time 3.765e-05/0.5829, allocations: 80.14 kB / 1.454 GB, free: 13.63 MB / 1.154 GB Notification: Performance of collectInitialBindings (initialization): time 6.384e-05/0.583, allocations: 43.83 kB / 1.454 GB, free: 13.59 MB / 1.154 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.662e-05/0.583, allocations: 29.7 kB / 1.454 GB, free: 13.55 MB / 1.154 GB Notification: Performance of setup shared object (initialization): time 0.0001418/0.5832, allocations: 318.9 kB / 1.454 GB, free: 13.23 MB / 1.154 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.235e-05/0.5832, allocations: 27.92 kB / 1.454 GB, free: 13.2 MB / 1.154 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.415e-05/0.5833, allocations: 41.7 kB / 1.454 GB, free: 13.16 MB / 1.154 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.743e-05/0.5834, allocations: 49.72 kB / 1.455 GB, free: 13.1 MB / 1.154 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.5834, allocations: 4 kB / 1.455 GB, free: 13.1 MB / 1.154 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001471/0.5835, allocations: 105.5 kB / 1.455 GB, free: 12.99 MB / 1.154 GB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.5836, allocations: 8 kB / 1.455 GB, free: 12.98 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.5836, allocations: 3.938 kB / 1.455 GB, free: 12.98 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.5836, allocations: 0 / 1.455 GB, free: 12.98 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001165/0.5837, allocations: 20 kB / 1.455 GB, free: 12.96 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.897e-06/0.5837, allocations: 3.984 kB / 1.455 GB, free: 12.95 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.265e-05/0.5837, allocations: 4 kB / 1.455 GB, free: 12.95 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.17e-05/0.5837, allocations: 11.94 kB / 1.455 GB, free: 12.94 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.538e-05/0.5838, allocations: 118.3 kB / 1.455 GB, free: 12.81 MB / 1.154 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.458e-05/0.5838, allocations: 3.953 kB / 1.455 GB, free: 12.81 MB / 1.154 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.631e-05/0.5839, allocations: 11.91 kB / 1.455 GB, free: 12.79 MB / 1.154 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.5839, allocations: 0 / 1.455 GB, free: 12.79 MB / 1.154 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.5839, allocations: 0 / 1.455 GB, free: 12.79 MB / 1.154 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.5839, allocations: 0 / 1.455 GB, free: 12.79 MB / 1.154 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001331/0.584, allocations: 140.7 kB / 1.455 GB, free: 12.61 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.584, allocations: 0 / 1.455 GB, free: 12.61 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001242/0.5842, allocations: 27.98 kB / 1.455 GB, free: 12.59 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.5842, allocations: 4 kB / 1.455 GB, free: 12.58 MB / 1.154 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.775e-06/0.5842, allocations: 0 / 1.455 GB, free: 12.58 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.5842, allocations: 0 / 1.455 GB, free: 12.58 MB / 1.154 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.5842, allocations: 0 / 1.455 GB, free: 12.58 MB / 1.154 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002186/0.5844, allocations: 139.4 kB / 1.455 GB, free: 12.43 MB / 1.154 GB Notification: Performance of postOpt removeConstants (simulation): time 5.046e-05/0.5844, allocations: 11.98 kB / 1.455 GB, free: 12.42 MB / 1.154 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.363e-05/0.5844, allocations: 0 / 1.455 GB, free: 12.42 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.512e-05/0.5845, allocations: 8 kB / 1.455 GB, free: 12.41 MB / 1.154 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.919e-05/0.5845, allocations: 7.984 kB / 1.455 GB, free: 12.4 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.272e-06/0.5846, allocations: 0 / 1.455 GB, free: 12.4 MB / 1.154 GB Notification: Performance of sorting global known variables: time 4.462e-05/0.5846, allocations: 87.22 kB / 1.455 GB, free: 12.32 MB / 1.154 GB Notification: Performance of sort global known variables: time 8e-08/0.5846, allocations: 0 / 1.455 GB, free: 12.32 MB / 1.154 GB Notification: Performance of remove unused functions: time 0.0002009/0.5848, allocations: 16 kB / 1.455 GB, free: 12.3 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.0005274/0.5853, allocations: 0.6772 MB / 1.456 GB, free: 11.59 MB / 1.154 GB Notification: Performance of simCode: created initialization part: time 0.0001362/0.5855, allocations: 60 kB / 1.456 GB, free: 11.54 MB / 1.154 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.5855, allocations: 0 / 1.456 GB, free: 11.54 MB / 1.154 GB Notification: Performance of simCode: created simulation system equations: time 3.864e-05/0.5855, allocations: 23.98 kB / 1.456 GB, free: 11.51 MB / 1.154 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002473/0.5858, allocations: 8.547 kB / 1.456 GB, free: 11.5 MB / 1.154 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001538/0.5873, allocations: 1.46 MB / 1.457 GB, free: 9.957 MB / 1.154 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.066e-05/0.5874, allocations: 75.33 kB / 1.457 GB, free: 9.863 MB / 1.154 GB Notification: Performance of simCode: alias equations: time 5.542e-05/0.5874, allocations: 8.672 kB / 1.457 GB, free: 9.855 MB / 1.154 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.087e-05/0.5875, allocations: 15.44 kB / 1.457 GB, free: 9.84 MB / 1.154 GB Notification: Performance of SimCode: time 6.21e-07/0.5875, allocations: 3.938 kB / 1.457 GB, free: 9.836 MB / 1.154 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03562/0.6231, allocations: 2.218 MB / 1.46 GB, free: 7.762 MB / 1.154 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.86, allocations: 7.141 kB / 1.46 GB, free: 7.758 MB / 1.154 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.805364232044667]