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.0008045/0.0008045, allocations: 76.08 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.0008247/0.0008247, allocations: 153.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.8358/0.8358, allocations: 173.4 MB / 200.4 MB, free: 9.43 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.352e-06/1.352e-06, allocations: 0 / 318.4 MB, free: 6.223 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.501e-05/1.636e-05, allocations: 9.516 kB / 318.4 MB, free: 6.215 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.02204/0.02206, allocations: 33.73 MB / 352.2 MB, free: 4.348 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0036/0.02566, allocations: 4.155 MB / 356.3 MB, free: 188 kB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002163/0.02588, allocations: 11.94 kB / 356.3 MB, free: 176 kB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006717/0.02655, allocations: 286.1 kB / 356.6 MB, free: 15.89 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006489/0.0272, allocations: 0.4929 MB / 357.1 MB, free: 15.39 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003605/0.0308, allocations: 1.681 MB / 358.8 MB, free: 13.71 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001037/0.03184, allocations: 1.284 MB / 360.1 MB, free: 12.42 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001962/0.03203, allocations: 119.8 kB / 360.2 MB, free: 12.3 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006003/0.03263, allocations: 0.6468 MB / 360.8 MB, free: 11.65 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003668/0.033, allocations: 374.8 kB / 361.2 MB, free: 11.29 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 5.147e-05/0.03305, allocations: 44 kB / 361.3 MB, free: 11.24 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009432/0.034, allocations: 0.7296 MB / 362 MB, free: 10.51 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001126/0.03411, allocations: 143.5 kB / 362.1 MB, free: 10.37 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001474/0.03426, allocations: 215.6 kB / 362.3 MB, free: 10.16 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009698/0.03523, allocations: 1.169 MB / 363.5 MB, free: 8.988 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.03523, allocations: 0 / 363.5 MB, free: 8.988 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.03523, allocations: 0 / 363.5 MB, free: 8.988 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.303e-06/0.03524, allocations: 0 / 363.5 MB, free: 8.988 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.000837/0.03608, allocations: 0.7223 MB / 364.2 MB, free: 8.234 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.03612, allocations: 12.03 kB / 364.2 MB, free: 8.223 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.299e-05/0.03618, allocations: 74.72 kB / 364.3 MB, free: 8.141 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003152/0.03649, allocations: 76.62 kB / 364.4 MB, free: 8.066 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003606/0.03686, allocations: 284.9 kB / 364.7 MB, free: 7.762 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.029e-05/0.03688, allocations: 33.38 kB / 364.7 MB, free: 7.73 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.129e-05/0.03692, allocations: 40.38 kB / 364.7 MB, free: 7.691 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007886/0.03771, allocations: 0.658 MB / 365.4 MB, free: 6.938 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.664e-05/0.03772, allocations: 8.109 kB / 365.4 MB, free: 6.93 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.097e-05/0.03775, allocations: 19.94 kB / 365.4 MB, free: 6.91 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.427e-06/0.03776, allocations: 12 kB / 365.4 MB, free: 6.898 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003288/0.03809, allocations: 299.7 kB / 365.7 MB, free: 6.605 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006384/0.04447, allocations: 4.616 MB / 370.3 MB, free: 1.898 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003462/0.04482, allocations: 258.5 kB / 370.6 MB, free: 1.637 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001456/0.04497, allocations: 144.6 kB / 370.7 MB, free: 1.492 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004631/0.0496, allocations: 2.684 MB / 373.4 MB, free: 14.8 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.908e-05/0.04963, allocations: 46.44 kB / 373.5 MB, free: 14.75 MB / 346.7 MB Notification: Performance of pre-optimization done (n=35): time 1.654e-06/0.04963, allocations: 4 kB / 373.5 MB, free: 14.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=45): time 0.005784/0.05541, allocations: 2.304 MB / 375.8 MB, free: 12.4 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.137e-05/0.05544, allocations: 59.39 kB / 375.8 MB, free: 12.33 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002545/0.0557, allocations: 308.3 kB / 376.1 MB, free: 12.02 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.68e-05/0.05572, allocations: 41.69 kB / 376.2 MB, free: 11.98 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.05583, allocations: 220.5 kB / 376.4 MB, free: 11.75 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.349e-05/0.0559, allocations: 166.6 kB / 376.6 MB, free: 11.59 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.987e-05/0.05599, allocations: 98.3 kB / 376.6 MB, free: 11.49 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.05614, allocations: 350.8 kB / 377 MB, free: 11.14 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001609/0.0563, allocations: 149.2 kB / 377.1 MB, free: 10.99 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002211/0.05652, allocations: 284.7 kB / 377.4 MB, free: 10.66 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004122/0.05694, allocations: 473.2 kB / 377.9 MB, free: 10.15 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.05694, allocations: 0 / 377.9 MB, free: 10.15 MB / 346.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0007781/0.05772, allocations: 0.5972 MB / 378.5 MB, free: 9.539 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.05773, allocations: 8 kB / 378.5 MB, free: 9.531 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.05774, allocations: 4 kB / 378.5 MB, free: 9.527 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003694/0.06143, allocations: 1.848 MB / 380.3 MB, free: 7.691 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002155/0.06165, allocations: 103.9 kB / 380.4 MB, free: 7.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001656/0.06331, allocations: 2.454 MB / 382.9 MB, free: 4.969 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001285/0.06343, allocations: 16.06 kB / 382.9 MB, free: 4.953 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.172e-05/0.06346, allocations: 23.98 kB / 382.9 MB, free: 4.93 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.000143/0.0636, allocations: 174.3 kB / 383.1 MB, free: 4.75 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.823e-05/0.06365, allocations: 43.7 kB / 383.1 MB, free: 4.707 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007637/0.06441, allocations: 0.8729 MB / 384 MB, free: 3.82 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.091e-05/0.06442, allocations: 11.98 kB / 384 MB, free: 3.809 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-06/0.06442, allocations: 0 / 384 MB, free: 3.809 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006789/0.0651, allocations: 0.9788 MB / 385 MB, free: 2.75 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001222/0.06632, allocations: 1.417 MB / 386.4 MB, free: 1.277 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.06633, allocations: 4 kB / 386.4 MB, free: 1.273 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001586/0.06649, allocations: 67.91 kB / 386.5 MB, free: 1.207 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001621/0.06811, allocations: 0.6257 MB / 387.1 MB, free: 0.5742 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.482e-05/0.06814, allocations: 15.98 kB / 387.1 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006347/0.06878, allocations: 1.292 MB / 388.4 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.06878, allocations: 4.078 kB / 388.4 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009901/0.06977, allocations: 1.259 MB / 389.7 MB, free: 13.93 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.173e-05/0.06981, allocations: 35.72 kB / 389.7 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.321e-05/0.06985, allocations: 12.12 kB / 389.7 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001171/0.06996, allocations: 16 kB / 389.7 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.526e-05/0.07, allocations: 35.86 kB / 389.8 MB, free: 13.83 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.161e-05/0.07002, allocations: 19.98 kB / 389.8 MB, free: 13.81 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000144/0.07016, allocations: 215.1 kB / 390 MB, free: 13.59 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.07016, allocations: 0 / 390 MB, free: 13.59 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005084/0.07067, allocations: 231.7 kB / 390.2 MB, free: 13.37 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.00158/0.07225, allocations: 1.976 MB / 392.2 MB, free: 11.36 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008276/0.07308, allocations: 0.6881 MB / 392.9 MB, free: 10.66 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.07308, allocations: 0 / 392.9 MB, free: 10.66 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005207/0.0736, allocations: 421 kB / 393.3 MB, free: 10.25 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007088/0.07431, allocations: 240.9 kB / 393.6 MB, free: 10.01 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004035/0.07835, allocations: 4.409 MB / 398 MB, free: 5.41 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001514/0.0785, allocations: 237.3 kB / 398.2 MB, free: 5.16 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002044/0.0787, allocations: 64.36 kB / 398.3 MB, free: 5.094 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000142/0.07884, allocations: 160.4 kB / 398.4 MB, free: 4.938 MB / 362.7 MB Notification: Performance of SimCode: time 5.71e-07/0.07884, allocations: 0 / 398.4 MB, free: 4.938 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02791/0.1067, allocations: 18.59 MB / 417 MB, free: 2.617 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.048/8.155, allocations: 4.062 kB / 417 MB, free: 2.613 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_DryAir2_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000201919 --timeout=50 --tolerance=1e-06 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.mat","/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: 11.002049515023828]