Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2.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.MoistAir2,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_ReferenceAir_MoistAir2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.MoistAir2,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_ReferenceAir_MoistAir2",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.001742/0.001742, allocations: 105 kB / 17.59 MB, free: 5.422 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.001993/0.001993, allocations: 192.2 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.47/2.47, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.001859/0.001859, allocations: 60.12 kB / 280.7 MB, free: 3.098 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.139/0.1408, allocations: 46.64 MB / 327.4 MB, free: 4.395 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir2): time 0.4194/0.5603, allocations: 65.72 MB / 393.1 MB, free: 9.492 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01146/0.5718, allocations: 5.464 MB / 398.6 MB, free: 9.395 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008523/0.5727, allocations: 8.812 kB / 398.6 MB, free: 9.395 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001868/0.5746, allocations: 343.8 kB / 398.9 MB, free: 9.395 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002201/0.5769, allocations: 0.5119 MB / 399.4 MB, free: 9.383 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.03569/0.6126, allocations: 7.083 MB / 406.5 MB, free: 9.145 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003849/0.6165, allocations: 1.542 MB / 408 MB, free: 8.879 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009896/0.6175, allocations: 215.3 kB / 408.3 MB, free: 8.848 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002312/0.6199, allocations: 0.6262 MB / 408.9 MB, free: 8.684 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001699/0.6216, allocations: 0.5691 MB / 409.4 MB, free: 8.496 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004897/0.6221, allocations: 82 kB / 409.5 MB, free: 8.496 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03337/0.6555, allocations: 9.926 MB / 419.5 MB, free: 4.391 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001201/0.6568, allocations: 314.4 kB / 419.8 MB, free: 4.18 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001848/0.6587, allocations: 439.7 kB / 420.2 MB, free: 3.926 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02376/0.6825, allocations: 5.924 MB / 426.1 MB, free: 14.54 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.273e-05/0.6826, allocations: 0 / 426.1 MB, free: 14.54 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.6826, allocations: 0 / 426.1 MB, free: 14.54 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.688e-05/0.6826, allocations: 0 / 426.1 MB, free: 14.54 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.007407/0.6901, allocations: 1.549 MB / 427.7 MB, free: 12.95 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.92e-05/0.6901, allocations: 12.02 kB / 427.7 MB, free: 12.94 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003381/0.6905, allocations: 106.5 kB / 427.8 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009289/0.6914, allocations: 83.8 kB / 427.9 MB, free: 12.74 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001147/0.6926, allocations: 440.2 kB / 428.3 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.34e-05/0.6927, allocations: 45.31 kB / 428.3 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001692/0.6929, allocations: 60 kB / 428.4 MB, free: 12.17 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003279/0.6962, allocations: 0.8147 MB / 429.2 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.191e-05/0.6963, allocations: 3.906 kB / 429.2 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001376/0.6964, allocations: 28 kB / 429.2 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.467e-05/0.6964, allocations: 16 kB / 429.3 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003438/0.6999, allocations: 1.024 MB / 430.3 MB, free: 10.28 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03055/0.7305, allocations: 12.81 MB / 443.1 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003239/0.7338, allocations: 0.7421 MB / 443.8 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009935/0.7348, allocations: 408 kB / 444.2 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0257/0.7605, allocations: 12.25 MB / 456.5 MB, free: 11.6 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.241e-05/0.7606, allocations: 43.22 kB / 456.5 MB, free: 11.55 MB / 366.1 MB Notification: Performance of pre-optimization done (n=78): time 6.382e-06/0.7607, allocations: 0 / 456.5 MB, free: 11.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=88): time 0.01282/0.7735, allocations: 3.385 MB / 459.9 MB, free: 8.102 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.762e-05/0.7736, allocations: 68.34 kB / 460 MB, free: 8.02 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004976/0.7741, allocations: 352.5 kB / 460.3 MB, free: 7.672 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000114/0.7742, allocations: 45.7 kB / 460.4 MB, free: 7.621 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001907/0.7744, allocations: 240.6 kB / 460.6 MB, free: 7.379 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002757/0.7747, allocations: 307.5 kB / 460.9 MB, free: 7.082 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003032/0.775, allocations: 162.5 kB / 461.1 MB, free: 6.918 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000191/0.7752, allocations: 358.8 kB / 461.4 MB, free: 6.559 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006552/0.7759, allocations: 369.8 kB / 461.8 MB, free: 6.195 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001032/0.7769, allocations: 496.2 kB / 462.3 MB, free: 5.68 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001896/0.7789, allocations: 0.902 MB / 463.2 MB, free: 4.746 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.027e-06/0.7789, allocations: 4 kB / 463.2 MB, free: 4.742 MB / 366.1 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.002786/0.7817, allocations: 1.115 MB / 464.3 MB, free: 3.605 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.307e-05/0.7817, allocations: 4 kB / 464.3 MB, free: 3.602 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.245e-05/0.7817, allocations: 4 kB / 464.3 MB, free: 3.598 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008931/0.7826, allocations: 171.6 kB / 464.4 MB, free: 3.418 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008144/0.7835, allocations: 187.7 kB / 464.6 MB, free: 3.234 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003348/0.7868, allocations: 4.12 MB / 468.8 MB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005096/0.7873, allocations: 20 kB / 468.8 MB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001207/0.7875, allocations: 52.23 kB / 468.8 MB, free: 14.71 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {2, 2} * Without analytic Jacobian (size): 0 systems 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,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0004237/0.7879, allocations: 225.6 kB / 469 MB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004566/0.7884, allocations: 59.34 kB / 469.1 MB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002527/0.7909, allocations: 1.277 MB / 470.4 MB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.083e-05/0.7909, allocations: 8 kB / 470.4 MB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.791, allocations: 3.984 kB / 470.4 MB, free: 13.1 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001929/0.7929, allocations: 1.316 MB / 471.7 MB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003591/0.7965, allocations: 1.977 MB / 473.7 MB, free: 9.633 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.7965, allocations: 0 / 473.7 MB, free: 9.633 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008013/0.7973, allocations: 163.8 kB / 473.8 MB, free: 9.473 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001955/0.7993, allocations: 301.3 kB / 474.1 MB, free: 9.172 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.944e-05/0.7994, allocations: 27.98 kB / 474.2 MB, free: 9.145 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009265/0.8003, allocations: 1.289 MB / 475.5 MB, free: 7.809 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/0.8004, allocations: 4.031 kB / 475.5 MB, free: 7.805 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002903/0.8033, allocations: 1.425 MB / 476.9 MB, free: 6.352 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001984/0.8035, allocations: 120.5 kB / 477 MB, free: 6.215 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001376/0.8036, allocations: 28.05 kB / 477 MB, free: 6.188 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006048/0.8042, allocations: 27.98 kB / 477.1 MB, free: 6.16 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001082/0.8044, allocations: 48.92 kB / 477.1 MB, free: 6.113 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001269/0.8045, allocations: 43.97 kB / 477.1 MB, free: 6.07 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003559/0.8049, allocations: 283 kB / 477.4 MB, free: 5.797 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.8049, allocations: 0 / 477.4 MB, free: 5.797 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004396/0.8093, allocations: 1.394 MB / 478.8 MB, free: 4.402 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume1.medium.p,volume1.medium.Xi[1],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 (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {2, 2} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009787/0.8191, allocations: 3.611 MB / 482.4 MB, free: 0.8867 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003049/0.8222, allocations: 1.265 MB / 483.7 MB, free: 15.59 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.773e-06/0.8222, allocations: 0 / 483.7 MB, free: 15.59 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001009/0.8232, allocations: 499.2 kB / 484.2 MB, free: 15.09 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002244/0.8255, allocations: 382.2 kB / 484.6 MB, free: 14.72 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01423/0.8397, allocations: 7.175 MB / 491.7 MB, free: 7.375 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005954/0.8404, allocations: 0.9128 MB / 492.6 MB, free: 6.438 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001001/0.8414, allocations: 201.2 kB / 492.8 MB, free: 6.238 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000406/0.8418, allocations: 227.3 kB / 493.1 MB, free: 6.016 MB / 398.1 MB Notification: Performance of SimCode: time 4.91e-07/0.8418, allocations: 0 / 493.1 MB, free: 6.016 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3469/1.189, allocations: 58.05 MB / 0.5382 GB, free: 169.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 22.54/23.73, allocations: 5.375 kB / 0.5382 GB, free: 169.9 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2_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_MoistAir2.fmu > Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/ReferenceAir/MoistAir2/MoistAir2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches