Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.DryAir1.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.DryAir1,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_ReferenceAir_DryAir1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir1,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_ReferenceAir_DryAir1",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.001697/0.001697, allocations: 106.9 kB / 17.58 MB, free: 5.559 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.002114/0.002114, allocations: 192 kB / 18.51 MB, free: 4.641 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.534/2.534, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.002596/0.002596, allocations: 51.92 kB / 280.7 MB, free: 3.078 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1566/0.1592, allocations: 46.62 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir1): time 0.07056/0.2298, allocations: 27.04 MB / 354.4 MB, free: 9.223 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009898/0.2398, allocations: 4.167 MB / 358.6 MB, free: 5.043 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007157/0.2406, allocations: 7.938 kB / 358.6 MB, free: 5.035 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001365/0.242, allocations: 202.7 kB / 358.8 MB, free: 4.836 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001598/0.2437, allocations: 338.1 kB / 359.1 MB, free: 4.504 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008443/0.2522, allocations: 1.478 MB / 360.6 MB, free: 3.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002204/0.2544, allocations: 0.8835 MB / 361.5 MB, free: 2.133 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004549/0.2549, allocations: 96.69 kB / 361.6 MB, free: 2.039 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01297/0.2679, allocations: 4.057 MB / 365.6 MB, free: 13.98 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009779/0.2689, allocations: 282.9 kB / 365.9 MB, free: 13.7 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002167/0.2692, allocations: 32 kB / 365.9 MB, free: 13.67 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003465/0.2727, allocations: 0.7142 MB / 366.7 MB, free: 12.95 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003281/0.2731, allocations: 99.66 kB / 366.8 MB, free: 12.86 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006667/0.2738, allocations: 191.2 kB / 366.9 MB, free: 12.67 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002784/0.2766, allocations: 0.8418 MB / 367.8 MB, free: 11.82 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.638e-06/0.2766, allocations: 0 / 367.8 MB, free: 11.82 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.4e-06/0.2767, allocations: 7.984 kB / 367.8 MB, free: 11.82 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.038e-05/0.2767, allocations: 4 kB / 367.8 MB, free: 11.81 MB / 318.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.001738/0.2784, allocations: 0.6432 MB / 368.4 MB, free: 11.12 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.939e-05/0.2785, allocations: 8.031 kB / 368.4 MB, free: 11.11 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001479/0.2787, allocations: 58.73 kB / 368.5 MB, free: 11.05 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008408/0.2795, allocations: 64.53 kB / 368.6 MB, free: 10.98 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005792/0.2801, allocations: 283.7 kB / 368.8 MB, free: 10.67 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.554e-05/0.2802, allocations: 24.94 kB / 368.9 MB, free: 10.64 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.281e-05/0.2803, allocations: 28.38 kB / 368.9 MB, free: 10.62 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009268/0.2812, allocations: 334.4 kB / 369.2 MB, free: 10.25 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.886e-05/0.2813, allocations: 11.94 kB / 369.2 MB, free: 10.24 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.563e-05/0.2813, allocations: 12 kB / 369.2 MB, free: 10.23 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.448e-05/0.2814, allocations: 4 kB / 369.2 MB, free: 10.23 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006199/0.282, allocations: 210 kB / 369.5 MB, free: 10.02 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02482/0.3068, allocations: 5.923 MB / 375.4 MB, free: 3.598 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005995/0.3075, allocations: 174.6 kB / 375.5 MB, free: 3.418 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002724/0.3078, allocations: 88.83 kB / 375.6 MB, free: 3.328 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3327/0.6405, allocations: 3.875 MB / 379.5 MB, free: 57.93 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.396e-05/0.6406, allocations: 43.83 kB / 379.5 MB, free: 57.89 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 3.547e-06/0.6406, allocations: 0 / 379.5 MB, free: 57.89 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.02461/0.6653, allocations: 1.402 MB / 381 MB, free: 57.52 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.196e-05/0.6654, allocations: 61.92 kB / 381 MB, free: 57.45 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005302/0.6659, allocations: 264.3 kB / 381.3 MB, free: 57.35 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.147e-05/0.666, allocations: 32.77 kB / 381.3 MB, free: 57.32 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001885/0.6662, allocations: 185.8 kB / 381.5 MB, free: 57.19 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001207/0.6663, allocations: 97.31 kB / 381.6 MB, free: 57.13 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001686/0.6665, allocations: 61.17 kB / 381.6 MB, free: 57.12 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.6666, allocations: 338 kB / 382 MB, free: 56.8 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002837/0.6669, allocations: 90.81 kB / 382.1 MB, free: 56.8 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000371/0.6673, allocations: 194.8 kB / 382.2 MB, free: 56.69 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006662/0.668, allocations: 298.3 kB / 382.5 MB, free: 56.48 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.1e-06/0.668, allocations: 2 kB / 382.5 MB, free: 56.48 MB / 318.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001213/0.6693, allocations: 398.3 kB / 382.9 MB, free: 56.3 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.769e-05/0.6693, allocations: 6.094 kB / 382.9 MB, free: 56.3 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.495e-05/0.6693, allocations: 3.766 kB / 382.9 MB, free: 56.3 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02347/0.6928, allocations: 0.94 MB / 383.9 MB, free: 56.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006312/0.6935, allocations: 73.06 kB / 383.9 MB, free: 56.22 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002064/0.6956, allocations: 1.981 MB / 385.9 MB, free: 54.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004028/0.696, allocations: 13.39 kB / 385.9 MB, free: 54.24 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.49e-05/0.6961, allocations: 17.17 kB / 386 MB, free: 54.24 MB / 318.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.0002727/0.6964, allocations: 151.2 kB / 386.1 MB, free: 54.1 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001173/0.6965, allocations: 29.3 kB / 386.1 MB, free: 54.09 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001201/0.6977, allocations: 499.3 kB / 386.6 MB, free: 53.84 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.469e-05/0.6977, allocations: 8.375 kB / 386.6 MB, free: 53.84 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.6978, allocations: 0.75 kB / 386.6 MB, free: 53.84 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009555/0.6987, allocations: 0.7198 MB / 387.4 MB, free: 53.24 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002061/0.7008, allocations: 0.9445 MB / 388.3 MB, free: 52.64 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.869e-06/0.7008, allocations: 1.062 kB / 388.3 MB, free: 52.64 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000336/0.7012, allocations: 47.89 kB / 388.3 MB, free: 52.63 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003037/0.7042, allocations: 324.7 kB / 388.7 MB, free: 52.57 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.688e-05/0.7043, allocations: 8.594 kB / 388.7 MB, free: 52.56 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006766/0.705, allocations: 0.6388 MB / 389.3 MB, free: 51.99 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.705, allocations: 3.938 kB / 389.3 MB, free: 51.98 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001539/0.7066, allocations: 0.7219 MB / 390 MB, free: 51.57 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000136/0.7067, allocations: 104.3 kB / 390.1 MB, free: 51.46 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.012e-05/0.7068, allocations: 11.67 kB / 390.1 MB, free: 51.45 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003348/0.7072, allocations: 9.625 kB / 390.2 MB, free: 51.44 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.125e-05/0.7073, allocations: 15.8 kB / 390.2 MB, free: 51.44 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.532e-05/0.7073, allocations: 12.75 kB / 390.2 MB, free: 51.44 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003401/0.7077, allocations: 183.1 kB / 390.4 MB, free: 51.33 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.7077, allocations: 0 / 390.4 MB, free: 51.33 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.01751/0.7252, allocations: 186.3 kB / 390.5 MB, free: 51.31 MB / 318.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.003357/0.7286, allocations: 1.43 MB / 392 MB, free: 50.34 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001715/0.7304, allocations: 464.6 kB / 392.4 MB, free: 50.11 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.027e-05/0.7304, allocations: 1.312 kB / 392.4 MB, free: 50.11 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001025/0.7315, allocations: 230.7 kB / 392.7 MB, free: 50.02 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002083/0.7336, allocations: 171.5 kB / 392.8 MB, free: 49.97 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02424/0.7578, allocations: 3.351 MB / 396.2 MB, free: 47.67 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003577/0.7583, allocations: 0.7754 MB / 397 MB, free: 46.97 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005319/0.7588, allocations: 43.06 kB / 397 MB, free: 46.96 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002184/0.7591, allocations: 101.8 kB / 397.1 MB, free: 46.89 MB / 318.1 MB Notification: Performance of SimCode: time 1.693e-06/0.7591, allocations: 5.375 kB / 397.1 MB, free: 46.89 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07381/0.8329, allocations: 13.29 MB / 410.4 MB, free: 35.5 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.55/20.38, allocations: 8 kB / 410.4 MB, free: 35.5 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.DryAir1.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Media_Examples_ReferenceAir_DryAir1.fmu > Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.DryAir1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/ReferenceAir/DryAir1/DryAir1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.DryAir1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches