Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir1,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_ReferenceAir_DryAir1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir1,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_ReferenceAir_DryAir1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001569/0.001569, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001895/0.001895, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 59.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2382/0.2394, allocations: 50.54 MB / 408.8 MB, free: 1.652 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir1): time 0.0256/0.2651, allocations: 27.12 MB / 435.9 MB, free: 6.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004803/0.2699, allocations: 4.159 MB / 440 MB, free: 2.258 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004395/0.2704, allocations: 7.938 kB / 440 MB, free: 2.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008584/0.2713, allocations: 206.7 kB / 440.2 MB, free: 2.047 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000907/0.2722, allocations: 338.2 kB / 440.6 MB, free: 1.715 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004604/0.2769, allocations: 1.479 MB / 442.1 MB, free: 248 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00112/0.278, allocations: 0.8834 MB / 442.9 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002446/0.2783, allocations: 104.7 kB / 443 MB, free: 15.25 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005854/0.2841, allocations: 4.061 MB / 447.1 MB, free: 11.19 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004387/0.2846, allocations: 274.9 kB / 447.4 MB, free: 10.92 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.706e-05/0.2847, allocations: 32 kB / 447.4 MB, free: 10.89 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001408/0.2861, allocations: 0.7259 MB / 448.1 MB, free: 10.16 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001323/0.2862, allocations: 95.67 kB / 448.2 MB, free: 10.07 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003053/0.2865, allocations: 195.2 kB / 448.4 MB, free: 9.875 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001312/0.2879, allocations: 0.853 MB / 449.3 MB, free: 9.02 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.2879, allocations: 0 / 449.3 MB, free: 9.02 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2879, allocations: 4 kB / 449.3 MB, free: 9.016 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.028e-05/0.2879, allocations: 0 / 449.3 MB, free: 9.016 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.0009765/0.2889, allocations: 0.658 MB / 449.9 MB, free: 8.309 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.2889, allocations: 8.031 kB / 449.9 MB, free: 8.301 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.094e-05/0.289, allocations: 66.73 kB / 450 MB, free: 8.227 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004759/0.2895, allocations: 56.72 kB / 450.1 MB, free: 8.172 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004369/0.2899, allocations: 303.8 kB / 450.4 MB, free: 7.836 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.991e-05/0.29, allocations: 20.94 kB / 450.4 MB, free: 7.816 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.769e-05/0.29, allocations: 32.36 kB / 450.4 MB, free: 7.785 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005064/0.2905, allocations: 342.4 kB / 450.7 MB, free: 7.41 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.692e-05/0.2906, allocations: 3.938 kB / 450.7 MB, free: 7.406 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.22e-05/0.2906, allocations: 12 kB / 450.8 MB, free: 7.395 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.2906, allocations: 8 kB / 450.8 MB, free: 7.387 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003181/0.2909, allocations: 210 kB / 451 MB, free: 7.184 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01247/0.3034, allocations: 5.9 MB / 456.9 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003096/0.3037, allocations: 186.6 kB / 457.1 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000138/0.3039, allocations: 95.81 kB / 457.1 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01016/0.3141, allocations: 3.885 MB / 461 MB, free: 12.31 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.091e-05/0.3141, allocations: 38.56 kB / 461.1 MB, free: 12.27 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 2.074e-06/0.3141, allocations: 4 kB / 461.1 MB, free: 12.26 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.006255/0.3204, allocations: 1.414 MB / 462.5 MB, free: 10.77 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.595e-05/0.3204, allocations: 55.41 kB / 462.5 MB, free: 10.7 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002712/0.3207, allocations: 262.5 kB / 462.8 MB, free: 10.44 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.949e-05/0.3208, allocations: 29.7 kB / 462.8 MB, free: 10.41 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001147/0.3209, allocations: 188.5 kB / 463 MB, free: 10.22 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.587e-05/0.321, allocations: 95.17 kB / 463.1 MB, free: 10.12 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001042/0.3211, allocations: 77.58 kB / 463.2 MB, free: 10.04 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.3212, allocations: 338.8 kB / 463.5 MB, free: 9.703 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001569/0.3214, allocations: 91.91 kB / 463.6 MB, free: 9.613 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002235/0.3216, allocations: 186.8 kB / 463.8 MB, free: 9.391 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003943/0.322, allocations: 303 kB / 464.1 MB, free: 9.055 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.322, allocations: 3.938 kB / 464.1 MB, free: 9.051 MB / 382.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006964/0.3227, allocations: 390.9 kB / 464.5 MB, free: 8.656 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/0.3227, allocations: 8 kB / 464.5 MB, free: 8.648 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.3228, allocations: 3.984 kB / 464.5 MB, free: 8.645 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004157/0.3269, allocations: 0.9328 MB / 465.4 MB, free: 7.715 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002768/0.3272, allocations: 63.91 kB / 465.5 MB, free: 7.652 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001938/0.3292, allocations: 1.986 MB / 467.5 MB, free: 5.496 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002632/0.3294, allocations: 12 kB / 467.5 MB, free: 5.484 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.512e-05/0.3295, allocations: 12 kB / 467.5 MB, free: 5.473 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {(2,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001685/0.3296, allocations: 169.5 kB / 467.6 MB, free: 5.297 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.481e-05/0.3297, allocations: 31.81 kB / 467.7 MB, free: 5.266 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007026/0.3304, allocations: 482.4 kB / 468.1 MB, free: 4.777 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.009e-05/0.3305, allocations: 7.984 kB / 468.2 MB, free: 4.77 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.024e-06/0.3305, allocations: 0 / 468.2 MB, free: 4.77 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006419/0.3311, allocations: 0.7168 MB / 468.9 MB, free: 3.965 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001201/0.3323, allocations: 0.9456 MB / 469.8 MB, free: 2.957 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.491e-06/0.3324, allocations: 4.031 kB / 469.8 MB, free: 2.953 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001853/0.3325, allocations: 47.92 kB / 469.9 MB, free: 2.906 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001722/0.3343, allocations: 320.4 kB / 470.2 MB, free: 2.59 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.128e-05/0.3343, allocations: 4 kB / 470.2 MB, free: 2.586 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004566/0.3348, allocations: 0.646 MB / 470.8 MB, free: 1.914 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.3348, allocations: 0 / 470.8 MB, free: 1.914 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008651/0.3357, allocations: 0.7177 MB / 471.5 MB, free: 1.172 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.588e-05/0.3358, allocations: 104.9 kB / 471.6 MB, free: 1.051 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.75e-05/0.3358, allocations: 8 kB / 471.7 MB, free: 1.043 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001812/0.336, allocations: 8.125 kB / 471.7 MB, free: 1.035 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.943e-05/0.3361, allocations: 19.97 kB / 471.7 MB, free: 1.016 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.759e-05/0.3361, allocations: 8 kB / 471.7 MB, free: 1.008 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001783/0.3363, allocations: 190 kB / 471.9 MB, free: 0.8242 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.543e-06/0.3363, allocations: 0 / 471.9 MB, free: 0.8242 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000653/0.3369, allocations: 191.6 kB / 472.1 MB, free: 0.6367 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.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 (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001671/0.3386, allocations: 1.433 MB / 473.5 MB, free: 15.17 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008484/0.3395, allocations: 463 kB / 474 MB, free: 14.7 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.3395, allocations: 0 / 474 MB, free: 14.7 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005195/0.34, allocations: 231.8 kB / 474.2 MB, free: 14.48 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001008/0.341, allocations: 168 kB / 474.3 MB, free: 14.32 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004167/0.3452, allocations: 3.342 MB / 477.7 MB, free: 10.81 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003408/0.3456, allocations: 0.776 MB / 478.5 MB, free: 10 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002234/0.3458, allocations: 50.94 kB / 478.5 MB, free: 9.953 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001426/0.346, allocations: 103.4 kB / 478.6 MB, free: 9.852 MB / 398.1 MB Notification: Performance of SimCode: time 2.345e-06/0.346, allocations: 0 / 478.6 MB, free: 9.852 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03696/0.3829, allocations: 13.43 MB / 492 MB, free: 12.55 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.56/11.95, allocations: 10.84 kB / 492 MB, free: 12.54 MB / 414.1 MB (rm -f Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1_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_trunk_Modelica_Media_Examples_ReferenceAir_DryAir1.fmu > Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/DryAir1/DryAir1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches