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.001336/0.001336, allocations: 113.4 kB / 17.73 MB, free: 5.359 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.001419/0.001419, allocations: 180.1 kB / 18.66 MB, free: 4.441 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.325/1.325, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001271/0.001271, allocations: 52.14 kB / 328 MB, free: 3.785 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07786/0.07914, 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.2048/0.284, allocations: 37.45 MB / 412.1 MB, free: 4.617 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006104/0.2901, allocations: 4.575 MB / 416.7 MB, free: 1.098 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004268/0.2906, allocations: 9.5 kB / 416.7 MB, free: 1.094 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009654/0.2916, allocations: 288.5 kB / 417 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00104/0.2927, allocations: 488.2 kB / 417.5 MB, free: 460 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005472/0.2981, allocations: 1.647 MB / 419.1 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001661/0.2998, allocations: 1.266 MB / 420.4 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003157/0.3001, allocations: 171.3 kB / 420.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008222/0.301, allocations: 479.1 kB / 421 MB, free: 14.15 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005321/0.3015, allocations: 402.1 kB / 421.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.901e-05/0.3016, allocations: 46.34 kB / 421.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001846/0.3035, allocations: 0.7506 MB / 422.2 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001553/0.3036, allocations: 129.2 kB / 422.3 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003295/0.304, allocations: 281.7 kB / 422.6 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00151/0.3055, allocations: 1.05 MB / 423.6 MB, free: 12.63 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.3055, allocations: 4 kB / 423.6 MB, free: 12.63 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.3055, allocations: 1.312 kB / 423.6 MB, free: 12.63 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.706e-05/0.3055, allocations: 3.938 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.001159/0.3067, allocations: 0.7763 MB / 424.4 MB, free: 11.97 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.3067, allocations: 14.05 kB / 424.4 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.931e-05/0.3068, allocations: 79.94 kB / 424.5 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005923/0.3074, allocations: 81.86 kB / 424.6 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005314/0.308, allocations: 344.8 kB / 424.9 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.815e-05/0.308, allocations: 28.78 kB / 425 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.373e-05/0.3081, allocations: 39.22 kB / 425 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006531/0.3088, allocations: 470 kB / 425.5 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.233e-05/0.3088, allocations: 11.12 kB / 425.5 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.314e-05/0.3088, allocations: 14.94 kB / 425.5 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/0.3089, allocations: 15.91 kB / 425.5 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000454/0.3093, allocations: 304.5 kB / 425.8 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01337/0.3227, allocations: 6.731 MB / 432.5 MB, free: 5.332 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004671/0.3232, allocations: 282.4 kB / 432.8 MB, free: 5.047 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002166/0.3234, allocations: 156.8 kB / 433 MB, free: 4.891 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01043/0.3338, allocations: 3.881 MB / 436.8 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.427e-05/0.3339, allocations: 38.56 kB / 436.9 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 2.355e-06/0.3339, allocations: 0 / 436.9 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.01158/0.3455, allocations: 2.46 MB / 439.3 MB, free: 14.14 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.95e-05/0.3456, allocations: 55.41 kB / 439.4 MB, free: 14.07 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003385/0.3459, allocations: 307.2 kB / 439.7 MB, free: 13.77 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.64e-05/0.346, allocations: 33.7 kB / 439.7 MB, free: 13.73 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001467/0.3461, allocations: 220 kB / 439.9 MB, free: 13.51 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001172/0.3463, allocations: 161.6 kB / 440.1 MB, free: 13.35 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001343/0.3464, allocations: 94.25 kB / 440.2 MB, free: 13.25 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001222/0.3465, allocations: 346.8 kB / 440.5 MB, free: 12.9 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002445/0.3468, allocations: 157.1 kB / 440.7 MB, free: 12.75 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003264/0.3471, allocations: 279.6 kB / 441 MB, free: 12.43 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006064/0.3477, allocations: 468.3 kB / 441.4 MB, free: 11.92 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.3477, allocations: 4 kB / 441.4 MB, free: 11.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001069/0.3488, allocations: 0.5919 MB / 442 MB, free: 11.31 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.997e-05/0.3489, allocations: 12.03 kB / 442 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/0.3489, allocations: 4 kB / 442 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007664/0.3565, allocations: 1.843 MB / 443.9 MB, free: 9.438 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004263/0.357, allocations: 111.8 kB / 444 MB, free: 9.328 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001988/0.359, allocations: 2.565 MB / 446.5 MB, free: 6.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003682/0.3594, allocations: 12 kB / 446.6 MB, free: 6.559 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.606e-05/0.3595, allocations: 20 kB / 446.6 MB, free: 6.539 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.0002586/0.3597, allocations: 181.6 kB / 446.8 MB, free: 6.352 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001121/0.3598, allocations: 39.53 kB / 446.8 MB, free: 6.312 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001262/0.3611, allocations: 0.8591 MB / 447.7 MB, free: 5.445 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.08e-05/0.3611, allocations: 4 kB / 447.7 MB, free: 5.441 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.3611, allocations: 4 kB / 447.7 MB, free: 5.438 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009456/0.3621, allocations: 0.9535 MB / 448.6 MB, free: 4.406 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001986/0.3641, allocations: 1.49 MB / 450.1 MB, free: 2.852 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.3641, allocations: 4.031 kB / 450.1 MB, free: 2.848 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002958/0.3644, allocations: 67.91 kB / 450.2 MB, free: 2.781 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00332/0.3678, allocations: 0.6216 MB / 450.8 MB, free: 2.152 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.556e-05/0.3678, allocations: 23.92 kB / 450.8 MB, free: 2.129 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009283/0.3687, allocations: 1.28 MB / 452.1 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.3688, allocations: 4.031 kB / 452.1 MB, free: 0.793 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001495/0.3703, allocations: 1.221 MB / 453.3 MB, free: 15.54 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001522/0.3704, allocations: 116.5 kB / 453.4 MB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.233e-05/0.3705, allocations: 12.09 kB / 453.4 MB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002536/0.3708, allocations: 11.94 kB / 453.5 MB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.05e-05/0.3708, allocations: 35.92 kB / 453.5 MB, free: 15.35 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.741e-05/0.3709, allocations: 23.98 kB / 453.5 MB, free: 15.32 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002088/0.3711, allocations: 209.9 kB / 453.7 MB, free: 15.12 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.3711, allocations: 0 / 453.7 MB, free: 15.12 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008691/0.372, allocations: 231.9 kB / 453.9 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.002372/0.3743, allocations: 1.928 MB / 455.9 MB, free: 12.93 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001235/0.3756, allocations: 0.6949 MB / 456.6 MB, free: 12.23 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.3756, allocations: 0 / 456.6 MB, free: 12.23 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008854/0.3765, allocations: 444.9 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.001241/0.3778, allocations: 247.8 kB / 457.2 MB, free: 11.55 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005516/0.3833, allocations: 4.458 MB / 461.7 MB, free: 6.895 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003738/0.3837, allocations: 0.8324 MB / 462.5 MB, free: 6.039 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002913/0.384, allocations: 72.33 kB / 462.6 MB, free: 5.969 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002026/0.3842, allocations: 163.4 kB / 462.8 MB, free: 5.809 MB / 382.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3842, allocations: 0 / 462.8 MB, free: 5.809 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04253/0.4267, allocations: 17.37 MB / 480.1 MB, free: 4.359 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.84/12.26, allocations: 12.38 kB / 480.2 MB, free: 4.348 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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_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.000404 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.csv","/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