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.00132/0.00132, allocations: 118.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001428/0.001428, allocations: 197.2 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.429/1.429, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001803/0.001803, allocations: 67.88 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2499/0.2518, allocations: 50.54 MB / 408.8 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir1): time 0.03083/0.2826, allocations: 27.11 MB / 435.9 MB, free: 6.301 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005307/0.288, allocations: 4.163 MB / 440 MB, free: 2.125 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002582/0.2883, allocations: 8 kB / 440 MB, free: 2.117 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006976/0.289, allocations: 206.7 kB / 440.2 MB, free: 1.914 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006884/0.2897, allocations: 334.1 kB / 440.6 MB, free: 1.586 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003972/0.2937, allocations: 1.487 MB / 442.1 MB, free: 108 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001111/0.2948, allocations: 0.8834 MB / 442.9 MB, free: 15.22 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002192/0.2951, allocations: 100 kB / 443 MB, free: 15.12 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006735/0.3018, allocations: 4.049 MB / 447.1 MB, free: 11.07 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004186/0.3023, allocations: 270.9 kB / 447.4 MB, free: 10.8 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.283e-05/0.3023, allocations: 36 kB / 447.4 MB, free: 10.77 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001513/0.3039, allocations: 0.7298 MB / 448.1 MB, free: 10.04 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001266/0.304, allocations: 91.73 kB / 448.2 MB, free: 9.949 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002492/0.3043, allocations: 195.2 kB / 448.4 MB, free: 9.758 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001279/0.3056, allocations: 0.853 MB / 449.3 MB, free: 8.902 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.349e-06/0.3056, allocations: 0 / 449.3 MB, free: 8.902 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.3056, allocations: 0 / 449.3 MB, free: 8.902 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.322e-06/0.3056, allocations: 3.938 kB / 449.3 MB, free: 8.898 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.001023/0.3066, allocations: 0.6658 MB / 449.9 MB, free: 8.184 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.518e-05/0.3067, allocations: 12.03 kB / 449.9 MB, free: 8.172 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.624e-05/0.3068, allocations: 58.73 kB / 450 MB, free: 8.105 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004482/0.3072, allocations: 56.72 kB / 450 MB, free: 8.051 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004934/0.3077, allocations: 299.8 kB / 450.3 MB, free: 7.719 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.441e-05/0.3077, allocations: 24.94 kB / 450.4 MB, free: 7.695 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.555e-05/0.3078, allocations: 24.38 kB / 450.4 MB, free: 7.672 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005591/0.3084, allocations: 338.4 kB / 450.7 MB, free: 7.301 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.554e-05/0.3084, allocations: 0 / 450.7 MB, free: 7.301 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.9e-05/0.3084, allocations: 16 kB / 450.7 MB, free: 7.285 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.143e-05/0.3085, allocations: 12 kB / 450.7 MB, free: 7.273 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003587/0.3088, allocations: 210 kB / 451 MB, free: 7.07 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01355/0.3224, allocations: 5.912 MB / 456.9 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003268/0.3228, allocations: 174.6 kB / 457 MB, free: 488 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001446/0.3229, allocations: 88.83 kB / 457.1 MB, free: 396 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01113/0.3341, allocations: 3.889 MB / 461 MB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.648e-05/0.3341, allocations: 34.56 kB / 461 MB, free: 12.16 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 3.927e-06/0.3341, allocations: 0 / 461 MB, free: 12.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.006436/0.3406, allocations: 1.418 MB / 462.5 MB, free: 10.66 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.33e-05/0.3407, allocations: 55.41 kB / 462.5 MB, free: 10.59 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003137/0.341, allocations: 270.5 kB / 462.8 MB, free: 10.32 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.129e-05/0.341, allocations: 29.7 kB / 462.8 MB, free: 10.29 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001438/0.3412, allocations: 188.5 kB / 463 MB, free: 10.1 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.588e-05/0.3413, allocations: 99.16 kB / 463.1 MB, free: 10 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001187/0.3414, allocations: 73.64 kB / 463.2 MB, free: 9.926 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.3416, allocations: 330.8 kB / 463.5 MB, free: 9.594 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001805/0.3417, allocations: 95.91 kB / 463.6 MB, free: 9.5 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002464/0.342, allocations: 190.9 kB / 463.8 MB, free: 9.273 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004309/0.3424, allocations: 303 kB / 464.1 MB, free: 8.938 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.3424, allocations: 0 / 464.1 MB, free: 8.938 MB / 382.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007092/0.3432, allocations: 399.1 kB / 464.5 MB, free: 8.535 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.3432, allocations: 6.969 kB / 464.5 MB, free: 8.531 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.3432, allocations: 4 kB / 464.5 MB, free: 8.527 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004343/0.3476, allocations: 0.9324 MB / 465.4 MB, free: 7.598 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002833/0.3479, allocations: 75.89 kB / 465.5 MB, free: 7.523 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001839/0.3497, allocations: 1.97 MB / 467.4 MB, free: 5.383 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002039/0.3499, allocations: 8.188 kB / 467.4 MB, free: 5.375 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.51e-05/0.35, allocations: 20 kB / 467.5 MB, free: 5.355 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.0002011/0.3502, allocations: 161.6 kB / 467.6 MB, free: 5.188 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.575e-05/0.3502, allocations: 27.81 kB / 467.7 MB, free: 5.16 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000771/0.351, allocations: 494.2 kB / 468.1 MB, free: 4.66 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.351, allocations: 0 / 468.1 MB, free: 4.66 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.351, allocations: 4 kB / 468.1 MB, free: 4.656 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007363/0.3518, allocations: 0.7163 MB / 468.9 MB, free: 3.852 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001332/0.3531, allocations: 0.9501 MB / 469.8 MB, free: 2.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.588e-06/0.3531, allocations: 0 / 469.8 MB, free: 2.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001888/0.3533, allocations: 39.98 kB / 469.8 MB, free: 2.801 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001758/0.3551, allocations: 316.5 kB / 470.2 MB, free: 2.488 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.315e-05/0.3551, allocations: 12 kB / 470.2 MB, free: 2.477 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005626/0.3557, allocations: 0.646 MB / 470.8 MB, free: 1.805 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3557, allocations: 0 / 470.8 MB, free: 1.805 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009876/0.3567, allocations: 0.7217 MB / 471.5 MB, free: 1.059 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.629e-05/0.3568, allocations: 113 kB / 471.6 MB, free: 0.9297 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.834e-05/0.3569, allocations: 4 kB / 471.6 MB, free: 0.9258 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001739/0.3571, allocations: 11.98 kB / 471.7 MB, free: 0.9141 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.38e-05/0.3571, allocations: 15.97 kB / 471.7 MB, free: 0.8984 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.786e-05/0.3571, allocations: 8 kB / 471.7 MB, free: 0.8906 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001984/0.3573, allocations: 186 kB / 471.9 MB, free: 0.7109 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.074e-06/0.3574, allocations: 4 kB / 471.9 MB, free: 0.707 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006963/0.3581, allocations: 191.6 kB / 472.1 MB, free: 0.5195 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.001781/0.3598, allocations: 1.421 MB / 473.5 MB, free: 15.06 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008582/0.3607, allocations: 462.3 kB / 473.9 MB, free: 14.6 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.3607, allocations: 0.75 kB / 473.9 MB, free: 14.6 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000527/0.3613, allocations: 231.8 kB / 474.2 MB, free: 14.37 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000914/0.3622, allocations: 168.2 kB / 474.3 MB, free: 14.21 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00446/0.3667, allocations: 3.346 MB / 477.7 MB, free: 10.7 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004214/0.3671, allocations: 0.7799 MB / 478.4 MB, free: 9.887 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000226/0.3674, allocations: 54.92 kB / 478.5 MB, free: 9.832 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001428/0.3675, allocations: 99.41 kB / 478.6 MB, free: 9.734 MB / 398.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3675, allocations: 0 / 478.6 MB, free: 9.734 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04441/0.4119, allocations: 13.43 MB / 492 MB, free: 12.43 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.51/12.92, allocations: 4.609 kB / 492 MB, free: 12.43 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.1.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