Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008271/0.0008271, allocations: 76.06 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001057/0.001057, allocations: 149.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8449/0.8449, allocations: 173.4 MB / 200.4 MB, free: 9.422 MB / 186.7 MB " [Timeout remaining time 179] 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(Modelica.Media.Examples.ReferenceAir.DryAir2,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_DryAir2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir2,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_DryAir2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.243e-06/1.243e-06, allocations: 0 / 318.4 MB, free: 6.203 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.107e-05/1.231e-05, allocations: 2.281 kB / 318.4 MB, free: 6.199 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.02175/0.02177, allocations: 33.74 MB / 352.2 MB, free: 4.328 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003867/0.02563, allocations: 4.151 MB / 356.3 MB, free: 172 kB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004287/0.02606, allocations: 7.938 kB / 356.3 MB, free: 164 kB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008596/0.02692, allocations: 286.1 kB / 356.6 MB, free: 15.88 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001072/0.02799, allocations: 0.493 MB / 357.1 MB, free: 15.38 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004812/0.0328, allocations: 1.685 MB / 358.8 MB, free: 13.7 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001024/0.03383, allocations: 1.284 MB / 360.1 MB, free: 12.41 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001951/0.03402, allocations: 119.8 kB / 360.2 MB, free: 12.29 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006284/0.03465, allocations: 0.6468 MB / 360.8 MB, free: 11.64 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003473/0.035, allocations: 370.8 kB / 361.2 MB, free: 11.27 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 5.434e-05/0.03505, allocations: 48 kB / 361.3 MB, free: 11.23 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008587/0.03591, allocations: 0.7257 MB / 362 MB, free: 10.5 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001099/0.03602, allocations: 143.5 kB / 362.1 MB, free: 10.36 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001543/0.03618, allocations: 215.6 kB / 362.3 MB, free: 10.15 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001231/0.03741, allocations: 1.169 MB / 363.5 MB, free: 8.977 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.03741, allocations: 4 kB / 363.5 MB, free: 8.973 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.03741, allocations: 0 / 363.5 MB, free: 8.973 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.404e-06/0.03742, allocations: 0 / 363.5 MB, free: 8.973 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.0008065/0.03823, allocations: 0.7223 MB / 364.2 MB, free: 8.219 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.03827, allocations: 8.031 kB / 364.2 MB, free: 8.211 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.118e-05/0.03833, allocations: 78.72 kB / 364.3 MB, free: 8.125 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003198/0.03865, allocations: 76.62 kB / 364.4 MB, free: 8.051 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003487/0.039, allocations: 281 kB / 364.7 MB, free: 7.75 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.99e-05/0.03902, allocations: 33.38 kB / 364.7 MB, free: 7.719 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.135e-05/0.03906, allocations: 44.36 kB / 364.7 MB, free: 7.676 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005052/0.03956, allocations: 0.6618 MB / 365.4 MB, free: 6.918 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.587e-05/0.03958, allocations: 4.188 kB / 365.4 MB, free: 6.914 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.945e-05/0.03961, allocations: 19.94 kB / 365.4 MB, free: 6.895 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.075e-06/0.03962, allocations: 8 kB / 365.4 MB, free: 6.887 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003146/0.03993, allocations: 307.6 kB / 365.7 MB, free: 6.586 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006193/0.04612, allocations: 4.616 MB / 370.3 MB, free: 1.879 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003138/0.04644, allocations: 254.4 kB / 370.6 MB, free: 1.621 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001778/0.04661, allocations: 148.6 kB / 370.7 MB, free: 1.473 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004394/0.05101, allocations: 2.68 MB / 373.4 MB, free: 14.79 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.309e-05/0.05103, allocations: 38.5 kB / 373.5 MB, free: 14.74 MB / 346.7 MB Notification: Performance of pre-optimization done (n=35): time 1.403e-06/0.05103, allocations: 8 kB / 373.5 MB, free: 14.73 MB / 346.7 MB Notification: Performance of matching and sorting (n=45): time 0.005803/0.05684, allocations: 2.3 MB / 375.8 MB, free: 12.39 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.163e-05/0.05687, allocations: 55.41 kB / 375.8 MB, free: 12.33 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002261/0.05709, allocations: 316.3 kB / 376.1 MB, free: 12.01 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.634e-05/0.05712, allocations: 37.7 kB / 376.2 MB, free: 11.97 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.05722, allocations: 224.5 kB / 376.4 MB, free: 11.74 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.692e-05/0.0573, allocations: 166.6 kB / 376.5 MB, free: 11.58 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.046e-05/0.05739, allocations: 94.3 kB / 376.6 MB, free: 11.48 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000358/0.05775, allocations: 354.8 kB / 377 MB, free: 11.12 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001671/0.05791, allocations: 149.2 kB / 377.1 MB, free: 10.98 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002213/0.05814, allocations: 284.6 kB / 377.4 MB, free: 10.65 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004208/0.05856, allocations: 469.3 kB / 377.9 MB, free: 10.14 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.05856, allocations: 4 kB / 377.9 MB, free: 10.14 MB / 346.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0006297/0.05919, allocations: 0.5972 MB / 378.5 MB, free: 9.527 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/0.0592, allocations: 4 kB / 378.5 MB, free: 9.523 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.05921, allocations: 4 kB / 378.5 MB, free: 9.52 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003632/0.06284, allocations: 1.851 MB / 380.3 MB, free: 7.68 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002197/0.06306, allocations: 115.8 kB / 380.4 MB, free: 7.566 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001217/0.06428, allocations: 2.447 MB / 382.9 MB, free: 4.953 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001376/0.06442, allocations: 20.06 kB / 382.9 MB, free: 4.934 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.162e-05/0.06444, allocations: 20 kB / 382.9 MB, free: 4.914 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (61): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,1), (2,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001425/0.06458, allocations: 174.4 kB / 383.1 MB, free: 4.734 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.034e-05/0.06463, allocations: 43.7 kB / 383.1 MB, free: 4.691 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007503/0.06538, allocations: 0.8691 MB / 384 MB, free: 3.809 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.148e-05/0.06539, allocations: 7.984 kB / 384 MB, free: 3.801 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-06/0.06539, allocations: 3.938 kB / 384 MB, free: 3.797 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008621/0.06626, allocations: 0.9789 MB / 385 MB, free: 2.738 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00119/0.06745, allocations: 1.421 MB / 386.4 MB, free: 1.262 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.06745, allocations: 0 / 386.4 MB, free: 1.262 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001584/0.06761, allocations: 71.91 kB / 386.5 MB, free: 1.191 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001454/0.06906, allocations: 0.6297 MB / 387.1 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.332e-05/0.06909, allocations: 15.98 kB / 387.1 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005631/0.06965, allocations: 1.292 MB / 388.4 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.522e-06/0.06965, allocations: 0 / 388.4 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009442/0.07059, allocations: 1.255 MB / 389.7 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.31e-05/0.07064, allocations: 39.72 kB / 389.7 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.192e-05/0.07067, allocations: 8.125 kB / 389.7 MB, free: 13.87 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001143/0.07078, allocations: 20 kB / 389.7 MB, free: 13.85 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.399e-05/0.07082, allocations: 35.86 kB / 389.8 MB, free: 13.81 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.977e-05/0.07084, allocations: 19.98 kB / 389.8 MB, free: 13.79 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001348/0.07097, allocations: 215.1 kB / 390 MB, free: 13.58 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.07097, allocations: 0 / 390 MB, free: 13.58 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004549/0.07143, allocations: 231.7 kB / 390.2 MB, free: 13.35 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (volume.medium.p,volume.medium.T,volume1.medium.p,volume1.medium.T) * 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 (43): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,2), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001712/0.07314, allocations: 1.976 MB / 392.2 MB, free: 11.35 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007292/0.07387, allocations: 0.6842 MB / 392.9 MB, free: 10.65 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.07387, allocations: 0 / 392.9 MB, free: 10.65 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004835/0.07435, allocations: 425 kB / 393.3 MB, free: 10.23 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000668/0.07502, allocations: 243.7 kB / 393.6 MB, free: 9.996 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003746/0.07877, allocations: 4.409 MB / 398 MB, free: 5.395 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001458/0.07891, allocations: 233.3 kB / 398.2 MB, free: 5.148 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001814/0.0791, allocations: 72.34 kB / 398.3 MB, free: 5.074 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003973/0.07949, allocations: 160.4 kB / 398.4 MB, free: 4.918 MB / 362.7 MB Notification: Performance of SimCode: time 9.12e-07/0.07949, allocations: 0 / 398.4 MB, free: 4.918 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02926/0.1088, allocations: 18.59 MB / 417 MB, free: 2.598 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.247/8.356, allocations: 2.922 kB / 417 MB, free: 2.598 MB / 378.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000201919 Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_DryAir2.fmu > Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/DryAir2/DryAir2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.768872152082622]