Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.DryAir2.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.001255/0.001255, allocations: 118.3 kB / 19.17 MB, free: 3.898 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.001331/0.001331, allocations: 205.7 kB / 22.12 MB, free: 0.9609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.344/1.344, allocations: 207.6 MB / 232.5 MB, free: 11.52 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.Media.Examples.ReferenceAir.DryAir2,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_ReferenceAir_DryAir2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir2,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_ReferenceAir_DryAir2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 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.001707/0.001707, allocations: 57.03 kB / 343 MB, free: 12.29 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2314/0.2331, allocations: 49.13 MB / 392.1 MB, free: 8.684 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.03583/0.2689, allocations: 37.63 MB / 429.8 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005977/0.2749, allocations: 4.588 MB / 434.3 MB, free: 8.566 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003177/0.2752, allocations: 9.438 kB / 434.4 MB, free: 8.562 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008209/0.276, allocations: 307.4 kB / 434.7 MB, free: 8.301 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008916/0.2769, allocations: 488.9 kB / 435.1 MB, free: 7.902 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00472/0.2817, allocations: 1.646 MB / 436.8 MB, free: 6.668 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001585/0.2832, allocations: 1.272 MB / 438.1 MB, free: 5.957 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002613/0.2835, allocations: 125.3 kB / 438.2 MB, free: 5.871 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006398/0.2841, allocations: 490 kB / 438.7 MB, free: 5.617 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005215/0.2847, allocations: 435.7 kB / 439.1 MB, free: 5.293 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.887e-05/0.2847, allocations: 44 kB / 439.1 MB, free: 5.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001567/0.2863, allocations: 0.761 MB / 439.9 MB, free: 4.488 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001642/0.2865, allocations: 139.5 kB / 440 MB, free: 4.352 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002977/0.2868, allocations: 279 kB / 440.3 MB, free: 4.078 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001378/0.2881, allocations: 1.044 MB / 441.3 MB, free: 3.031 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.2881, allocations: 4 kB / 441.3 MB, free: 3.027 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2881, allocations: 0 / 441.3 MB, free: 3.027 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.263e-05/0.2882, allocations: 0 / 441.3 MB, free: 3.027 MB / 350.1 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.001171/0.2893, allocations: 0.7944 MB / 442.1 MB, free: 2.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.2894, allocations: 11.89 kB / 442.1 MB, free: 2.168 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.038e-05/0.2894, allocations: 17.12 kB / 442.2 MB, free: 2.152 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.607e-05/0.2895, allocations: 78.72 kB / 442.2 MB, free: 2.066 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000563/0.29, allocations: 80.62 kB / 442.3 MB, free: 1.988 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005271/0.2906, allocations: 347.6 kB / 442.7 MB, free: 1.609 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.932e-05/0.2906, allocations: 29.38 kB / 442.7 MB, free: 1.582 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.776e-05/0.2907, allocations: 48.08 kB / 442.7 MB, free: 1.535 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000705/0.2914, allocations: 471.5 kB / 443.2 MB, free: 1.031 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.037e-05/0.2914, allocations: 4 kB / 443.2 MB, free: 1.027 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.261e-05/0.2914, allocations: 20 kB / 443.2 MB, free: 1.008 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.478e-05/0.2914, allocations: 12 kB / 443.2 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004855/0.2919, allocations: 303.7 kB / 443.5 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01384/0.3058, allocations: 6.739 MB / 450.3 MB, free: 9.371 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005059/0.3063, allocations: 250.5 kB / 450.5 MB, free: 9.117 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002226/0.3065, allocations: 141.3 kB / 450.6 MB, free: 8.977 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01052/0.317, allocations: 3.896 MB / 454.5 MB, free: 4.781 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.948e-05/0.3171, allocations: 30.56 kB / 454.6 MB, free: 4.742 MB / 366.1 MB Notification: Performance of pre-optimization done (n=35): time 2.094e-06/0.3171, allocations: 0 / 454.6 MB, free: 4.742 MB / 366.1 MB Notification: Performance of matching and sorting (n=45): time 0.01189/0.329, allocations: 2.47 MB / 457 MB, free: 2.195 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.261e-05/0.329, allocations: 59.41 kB / 457.1 MB, free: 2.125 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003469/0.3293, allocations: 303.2 kB / 457.4 MB, free: 1.824 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.806e-05/0.3294, allocations: 33.7 kB / 457.4 MB, free: 1.785 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001644/0.3295, allocations: 228.5 kB / 457.7 MB, free: 1.555 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001328/0.3297, allocations: 170.5 kB / 457.8 MB, free: 1.387 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001458/0.3298, allocations: 94.2 kB / 457.9 MB, free: 1.289 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001618/0.33, allocations: 350.8 kB / 458.3 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002771/0.3303, allocations: 157.1 kB / 458.4 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003611/0.3306, allocations: 275.7 kB / 458.7 MB, free: 480 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006764/0.3313, allocations: 468.4 kB / 459.1 MB, free: 15.96 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.3313, allocations: 8 kB / 459.1 MB, free: 15.95 MB / 382.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001096/0.3324, allocations: 0.5959 MB / 459.7 MB, free: 15.34 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.3324, allocations: 4 kB / 459.7 MB, free: 15.33 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.3324, allocations: 4 kB / 459.7 MB, free: 15.33 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007984/0.3404, allocations: 1.847 MB / 461.6 MB, free: 13.47 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004266/0.3408, allocations: 107.8 kB / 461.7 MB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002289/0.3431, allocations: 2.573 MB / 464.3 MB, free: 10.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002796/0.3434, allocations: 12 kB / 464.3 MB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.151e-05/0.3434, allocations: 20 kB / 464.3 MB, free: 10.57 MB / 382.1 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.0002298/0.3437, allocations: 177.6 kB / 464.5 MB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.493e-05/0.3438, allocations: 39.77 kB / 464.5 MB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001272/0.345, allocations: 0.8477 MB / 465.4 MB, free: 9.488 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.049e-05/0.345, allocations: 4 kB / 465.4 MB, free: 9.484 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.034e-06/0.345, allocations: 0 / 465.4 MB, free: 9.484 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00111/0.3462, allocations: 0.9573 MB / 466.3 MB, free: 8.449 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002061/0.3482, allocations: 1.493 MB / 467.8 MB, free: 6.887 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.3482, allocations: 7.766 kB / 467.8 MB, free: 6.883 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003068/0.3485, allocations: 75.91 kB / 467.9 MB, free: 6.809 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00334/0.3519, allocations: 0.6179 MB / 468.5 MB, free: 6.184 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.699e-05/0.3519, allocations: 12 kB / 468.5 MB, free: 6.172 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001101/0.353, allocations: 1.284 MB / 469.8 MB, free: 4.836 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/0.353, allocations: 4.062 kB / 469.8 MB, free: 4.832 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001755/0.3548, allocations: 1.221 MB / 471 MB, free: 3.586 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001314/0.3549, allocations: 116.8 kB / 471.2 MB, free: 3.453 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.774e-05/0.355, allocations: 19.94 kB / 471.2 MB, free: 3.434 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002199/0.3552, allocations: 4 kB / 471.2 MB, free: 3.43 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.801e-05/0.3552, allocations: 36 kB / 471.2 MB, free: 3.395 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.468e-05/0.3553, allocations: 20.27 kB / 471.2 MB, free: 3.375 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002322/0.3555, allocations: 209.9 kB / 471.4 MB, free: 3.172 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3555, allocations: 0 / 471.4 MB, free: 3.172 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007457/0.3563, allocations: 231.7 kB / 471.7 MB, free: 2.945 MB / 382.1 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.002507/0.3588, allocations: 1.935 MB / 473.6 MB, free: 0.9727 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001267/0.36, allocations: 0.6713 MB / 474.3 MB, free: 296 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.36, allocations: 0 / 474.3 MB, free: 296 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009877/0.361, allocations: 425 kB / 474.7 MB, free: 15.88 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00122/0.3622, allocations: 229.2 kB / 474.9 MB, free: 15.65 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006295/0.3685, allocations: 4.494 MB / 479.4 MB, free: 10.96 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004816/0.369, allocations: 0.8362 MB / 480.2 MB, free: 10.11 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002942/0.3693, allocations: 76.33 kB / 480.3 MB, free: 10.03 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002207/0.3695, allocations: 159.4 kB / 480.5 MB, free: 9.875 MB / 398.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3695, allocations: 0 / 480.5 MB, free: 9.875 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04291/0.4124, allocations: 17.5 MB / 498 MB, free: 8.301 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.38/12.8, allocations: 7.969 kB / 498 MB, free: 8.293 MB / 414.1 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.DryAir2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.DryAir2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_ReferenceAir_DryAir2_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000201919 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_ReferenceAir_DryAir2.fmu > Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.DryAir2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/ReferenceAir/DryAir2/DryAir2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 19.042406352004036]