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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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_3_2_3_Modelica_Media_Examples_ReferenceAir_DryAir2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir2,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_ReferenceAir_DryAir2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001506/0.001506, allocations: 114.5 kB / 17.73 MB, free: 5.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001613/0.001613, allocations: 187 kB / 18.66 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.321/1.321, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001182/0.001182, allocations: 55.92 kB / 328 MB, free: 3.785 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08628/0.08747, allocations: 46.62 MB / 374.7 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.1965/0.2841, allocations: 37.44 MB / 412.1 MB, free: 4.617 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006091/0.2902, allocations: 4.583 MB / 416.7 MB, free: 1.094 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007711/0.291, allocations: 9.812 kB / 416.7 MB, free: 1.09 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001308/0.2924, allocations: 292.8 kB / 417 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001377/0.2938, allocations: 483.5 kB / 417.5 MB, free: 456 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005956/0.2998, allocations: 1.646 MB / 419.1 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002004/0.3018, allocations: 1.266 MB / 420.4 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003653/0.3022, allocations: 169.2 kB / 420.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001/0.3032, allocations: 485.4 kB / 421 MB, free: 14.15 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008226/0.304, allocations: 407 kB / 421.4 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001232/0.3042, allocations: 45.47 kB / 421.4 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002054/0.3062, allocations: 0.7502 MB / 422.2 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001939/0.3064, allocations: 137.7 kB / 422.3 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004961/0.3069, allocations: 280.8 kB / 422.6 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001815/0.3088, allocations: 1.051 MB / 423.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.187e-06/0.3088, allocations: 0 / 423.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.3088, allocations: 0 / 423.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.817e-06/0.3088, allocations: 1.188 kB / 423.7 MB, free: 12.62 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.001164/0.31, allocations: 0.7689 MB / 424.4 MB, free: 11.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/0.31, allocations: 14.11 kB / 424.4 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.632e-05/0.3101, allocations: 86.98 kB / 424.5 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005722/0.3107, allocations: 82.88 kB / 424.6 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005247/0.3112, allocations: 342.4 kB / 424.9 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.053e-05/0.3113, allocations: 27.78 kB / 425 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.431e-05/0.3113, allocations: 41.44 kB / 425 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006991/0.312, allocations: 469.9 kB / 425.5 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.501e-05/0.3121, allocations: 18.25 kB / 425.5 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.034e-05/0.3121, allocations: 16.94 kB / 425.5 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.22e-05/0.3121, allocations: 9.688 kB / 425.5 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004616/0.3126, allocations: 306.7 kB / 425.8 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01312/0.3257, allocations: 6.73 MB / 432.5 MB, free: 5.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004582/0.3262, allocations: 274.4 kB / 432.8 MB, free: 5.043 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002159/0.3264, allocations: 152.8 kB / 433 MB, free: 4.891 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01026/0.3367, allocations: 3.889 MB / 436.8 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.061e-05/0.3368, allocations: 34.56 kB / 436.9 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 2.315e-06/0.3368, allocations: 0 / 436.9 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.01165/0.3485, allocations: 2.463 MB / 439.3 MB, free: 14.13 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.546e-05/0.3485, allocations: 55.41 kB / 439.4 MB, free: 14.07 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000327/0.3489, allocations: 303.2 kB / 439.7 MB, free: 13.77 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.534e-05/0.3489, allocations: 29.7 kB / 439.7 MB, free: 13.73 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001391/0.349, allocations: 224 kB / 439.9 MB, free: 13.5 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001129/0.3492, allocations: 165.6 kB / 440.1 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001299/0.3493, allocations: 94.25 kB / 440.2 MB, free: 13.24 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.3494, allocations: 350.8 kB / 440.5 MB, free: 12.89 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002604/0.3497, allocations: 153 kB / 440.7 MB, free: 12.74 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003307/0.35, allocations: 279.7 kB / 441 MB, free: 12.42 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007213/0.3508, allocations: 468.3 kB / 441.4 MB, free: 11.91 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.3508, allocations: 4 kB / 441.4 MB, free: 11.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001068/0.3519, allocations: 0.5918 MB / 442 MB, free: 11.3 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/0.3519, allocations: 11.88 kB / 442 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.535e-05/0.3519, allocations: 4 kB / 442 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007487/0.3594, allocations: 1.851 MB / 443.9 MB, free: 9.422 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004271/0.3599, allocations: 111.8 kB / 444 MB, free: 9.312 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002005/0.3619, allocations: 2.554 MB / 446.5 MB, free: 6.566 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003507/0.3623, allocations: 12 kB / 446.6 MB, free: 6.555 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.626e-05/0.3623, allocations: 20 kB / 446.6 MB, free: 6.535 MB / 366.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.0002362/0.3625, allocations: 181.6 kB / 446.8 MB, free: 6.348 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.413e-05/0.3626, allocations: 43.59 kB / 446.8 MB, free: 6.305 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001198/0.3638, allocations: 0.8551 MB / 447.7 MB, free: 5.441 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.269e-05/0.3639, allocations: 12 kB / 447.7 MB, free: 5.43 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.3639, allocations: 3.984 kB / 447.7 MB, free: 5.426 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009922/0.3649, allocations: 0.9535 MB / 448.6 MB, free: 4.395 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001955/0.3668, allocations: 1.49 MB / 450.1 MB, free: 2.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.3669, allocations: 0 / 450.1 MB, free: 2.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003007/0.3672, allocations: 79.89 kB / 450.2 MB, free: 2.762 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00331/0.3705, allocations: 0.6138 MB / 450.8 MB, free: 2.141 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.263e-05/0.3705, allocations: 23.92 kB / 450.8 MB, free: 2.117 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009901/0.3715, allocations: 1.28 MB / 452.1 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.3716, allocations: 4.125 kB / 452.1 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001516/0.3731, allocations: 1.213 MB / 453.3 MB, free: 15.54 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001428/0.3732, allocations: 116.5 kB / 453.4 MB, free: 15.4 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.615e-05/0.3733, allocations: 16.03 kB / 453.5 MB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002378/0.3735, allocations: 15.94 kB / 453.5 MB, free: 15.37 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.508e-05/0.3736, allocations: 31.84 kB / 453.5 MB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.426e-05/0.3736, allocations: 19.98 kB / 453.5 MB, free: 15.32 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002116/0.3738, allocations: 213.9 kB / 453.7 MB, free: 15.11 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3739, allocations: 0 / 453.7 MB, free: 15.11 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008002/0.3747, allocations: 227.9 kB / 454 MB, free: 14.89 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.002248/0.3769, allocations: 1.932 MB / 455.9 MB, free: 12.93 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00121/0.3781, allocations: 0.6988 MB / 456.6 MB, free: 12.21 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.3782, allocations: 0 / 456.6 MB, free: 12.21 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008958/0.3791, allocations: 441 kB / 457 MB, free: 11.79 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001291/0.3804, allocations: 243.4 kB / 457.3 MB, free: 11.55 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005968/0.3863, allocations: 4.47 MB / 461.7 MB, free: 6.879 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003647/0.3867, allocations: 0.8363 MB / 462.6 MB, free: 6.02 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002977/0.387, allocations: 68.34 kB / 462.6 MB, free: 5.953 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001876/0.3872, allocations: 159.4 kB / 462.8 MB, free: 5.797 MB / 382.1 MB Notification: Performance of SimCode: time 1.002e-06/0.3872, allocations: 4 kB / 462.8 MB, free: 5.793 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3229/0.7102, allocations: 17.57 MB / 480.3 MB, free: 4.148 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.09/12.8, allocations: 16.19 kB / 480.4 MB, free: 4.133 MB / 398.1 MB (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 --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) 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) Reference file matches