Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Media_Examples_ReferenceAir_DryAir2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir2,fileNamePrefix="Modelica_4_0_0_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.001331/0.001331, allocations: 112.5 kB / 17.06 MB, free: 5.945 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.001307/0.001307, allocations: 200.1 kB / 18.01 MB, free: 5.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.36/1.36, allocations: 222.9 MB / 241.7 MB, free: 15.1 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001481, allocations: 47.92 kB / 350.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2239/0.2254, allocations: 49.43 MB / 400.2 MB, free: 8.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.03786/0.2633, allocations: 37.44 MB / 437.7 MB, free: 3.371 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005535/0.2688, allocations: 4.572 MB / 442.3 MB, free: 14.79 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002288/0.2691, allocations: 8 kB / 442.3 MB, free: 14.78 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000763/0.2699, allocations: 294.2 kB / 442.5 MB, free: 14.49 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007982/0.2707, allocations: 477.3 kB / 443 MB, free: 14.02 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004101/0.2748, allocations: 1.654 MB / 444.7 MB, free: 12.37 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001506/0.2764, allocations: 1.269 MB / 445.9 MB, free: 11.1 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000298/0.2767, allocations: 174.6 kB / 446.1 MB, free: 10.92 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000644/0.2773, allocations: 470.4 kB / 446.6 MB, free: 10.46 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005141/0.2778, allocations: 410.4 kB / 447 MB, free: 10.05 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.89e-05/0.2779, allocations: 44 kB / 447 MB, free: 10.01 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001589/0.2795, allocations: 0.7532 MB / 447.8 MB, free: 9.258 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001581/0.2797, allocations: 135.6 kB / 447.9 MB, free: 9.125 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003041/0.28, allocations: 275 kB / 448.2 MB, free: 8.855 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001363/0.2814, allocations: 1.055 MB / 449.2 MB, free: 7.797 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.2814, allocations: 0 / 449.2 MB, free: 7.797 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2814, allocations: 4 kB / 449.2 MB, free: 7.793 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.595e-06/0.2814, allocations: 0 / 449.2 MB, free: 7.793 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001133/0.2826, allocations: 0.7944 MB / 450 MB, free: 6.949 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/0.2826, allocations: 11.89 kB / 450 MB, free: 6.938 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.58e-05/0.2827, allocations: 74.72 kB / 450.1 MB, free: 6.855 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005657/0.2833, allocations: 80.62 kB / 450.2 MB, free: 6.777 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005118/0.2838, allocations: 347.6 kB / 450.5 MB, free: 6.398 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.046e-05/0.2838, allocations: 29.38 kB / 450.6 MB, free: 6.371 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.276e-05/0.2839, allocations: 40.12 kB / 450.6 MB, free: 6.332 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007679/0.2847, allocations: 471.5 kB / 451.1 MB, free: 5.82 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.927e-05/0.2847, allocations: 0 / 451.1 MB, free: 5.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.139e-05/0.2848, allocations: 20 kB / 451.1 MB, free: 5.801 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.066e-05/0.2848, allocations: 11.94 kB / 451.1 MB, free: 5.789 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004875/0.2853, allocations: 311.7 kB / 451.4 MB, free: 5.488 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01363/0.2989, allocations: 6.739 MB / 458.1 MB, free: 14.16 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004889/0.2994, allocations: 276.7 kB / 458.4 MB, free: 13.88 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002346/0.2997, allocations: 151.9 kB / 458.5 MB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01061/0.3103, allocations: 3.889 MB / 462.4 MB, free: 9.547 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.016e-05/0.3104, allocations: 38.42 kB / 462.5 MB, free: 9.5 MB / 382.1 MB Notification: Performance of pre-optimization done (n=35): time 1.903e-06/0.3104, allocations: 0 / 462.5 MB, free: 9.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=45): time 0.01171/0.3221, allocations: 2.47 MB / 464.9 MB, free: 6.953 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.299e-05/0.3221, allocations: 63.41 kB / 465 MB, free: 6.879 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003333/0.3225, allocations: 299.2 kB / 465.3 MB, free: 6.586 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.091e-05/0.3225, allocations: 37.7 kB / 465.3 MB, free: 6.543 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001688/0.3227, allocations: 224.6 kB / 465.6 MB, free: 6.316 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001271/0.3228, allocations: 170.6 kB / 465.7 MB, free: 6.148 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001465/0.323, allocations: 98.2 kB / 465.8 MB, free: 6.047 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.3232, allocations: 342.8 kB / 466.1 MB, free: 5.703 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002731/0.3234, allocations: 153.1 kB / 466.3 MB, free: 5.555 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003638/0.3238, allocations: 279.6 kB / 466.6 MB, free: 5.23 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006743/0.3245, allocations: 472.3 kB / 467 MB, free: 4.719 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.3245, allocations: 0 / 467 MB, free: 4.719 MB / 382.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001096/0.3256, allocations: 0.5956 MB / 467.6 MB, free: 4.105 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/0.3256, allocations: 8.469 kB / 467.6 MB, free: 4.098 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/0.3256, allocations: 8 kB / 467.6 MB, free: 4.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007811/0.3335, allocations: 1.846 MB / 469.5 MB, free: 2.258 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004026/0.3339, allocations: 111.8 kB / 469.6 MB, free: 2.148 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002182/0.3361, allocations: 2.565 MB / 472.2 MB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002463/0.3363, allocations: 16 kB / 472.2 MB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.553e-05/0.3364, allocations: 20 kB / 472.2 MB, free: 15.36 MB / 398.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.0002246/0.3366, allocations: 186.9 kB / 472.4 MB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.138e-05/0.3367, allocations: 39.77 kB / 472.4 MB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001258/0.338, allocations: 0.8475 MB / 473.3 MB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-05/0.338, allocations: 12 kB / 473.3 MB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-06/0.338, allocations: 3.938 kB / 473.3 MB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001091/0.3391, allocations: 0.9535 MB / 474.2 MB, free: 13.22 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002032/0.3411, allocations: 1.497 MB / 475.7 MB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/0.3412, allocations: 4 kB / 475.7 MB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003061/0.3415, allocations: 75.94 kB / 475.8 MB, free: 11.58 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003404/0.3449, allocations: 0.6255 MB / 476.4 MB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.502e-05/0.3449, allocations: 11.98 kB / 476.4 MB, free: 10.94 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001062/0.346, allocations: 1.28 MB / 477.7 MB, free: 9.605 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.803e-06/0.346, allocations: 3.938 kB / 477.7 MB, free: 9.602 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001609/0.3476, allocations: 1.225 MB / 479 MB, free: 8.352 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001049/0.3478, allocations: 112.8 kB / 479.1 MB, free: 8.223 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.852e-05/0.3478, allocations: 12.22 kB / 479.1 MB, free: 8.211 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002199/0.348, allocations: 8 kB / 479.1 MB, free: 8.203 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.533e-05/0.3481, allocations: 32 kB / 479.1 MB, free: 8.172 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.623e-05/0.3482, allocations: 19.98 kB / 479.1 MB, free: 8.152 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002266/0.3484, allocations: 213.9 kB / 479.3 MB, free: 7.945 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3484, allocations: 0 / 479.3 MB, free: 7.945 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007209/0.3491, allocations: 235.7 kB / 479.6 MB, free: 7.715 MB / 398.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.002394/0.3515, allocations: 1.935 MB / 481.5 MB, free: 5.738 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001249/0.3528, allocations: 0.7064 MB / 482.2 MB, free: 5.02 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.3528, allocations: 0 / 482.2 MB, free: 5.02 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009356/0.3537, allocations: 432.3 kB / 482.6 MB, free: 4.598 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001221/0.355, allocations: 236.7 kB / 482.9 MB, free: 4.367 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005975/0.361, allocations: 4.49 MB / 487.4 MB, free: 15.68 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004611/0.3614, allocations: 0.8399 MB / 488.2 MB, free: 14.82 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002771/0.3617, allocations: 76.33 kB / 488.3 MB, free: 14.74 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002098/0.3619, allocations: 159.4 kB / 488.4 MB, free: 14.59 MB / 414.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3619, allocations: 7.938 kB / 488.4 MB, free: 14.58 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04694/0.4089, allocations: 17.36 MB / 0.494 GB, free: 13.39 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.37/12.78, allocations: 0.5938 kB / 0.494 GB, free: 13.39 MB / 430.1 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_DryAir2_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_DryAir2.fmu > Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/DryAir2/DryAir2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches