Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir1.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir1,fileNamePrefix="Modelica_trunk_cpp_Modelica_Media_Examples_ReferenceAir_DryAir1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir1,fileNamePrefix="Modelica_trunk_cpp_Modelica_Media_Examples_ReferenceAir_DryAir1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001005/0.001005, allocations: 196.6 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.184/1.184, allocations: 226.5 MB / 244.7 MB, free: 6.465 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007786/0.0007786, allocations: 100.8 kB / 296.7 MB, free: 6.645 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002171/0.0002171, allocations: 4 kB / 356.8 MB, free: 10.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1942/0.1944, allocations: 51.3 MB / 408.1 MB, free: 27.64 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir1): time 0.01496/0.2094, allocations: 24.98 MB / 433.1 MB, free: 2.594 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003075/0.2125, allocations: 3.897 MB / 437 MB, free: 14.68 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001586/0.2127, allocations: 7.938 kB / 437 MB, free: 14.68 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000478/0.2132, allocations: 159.1 kB / 437.2 MB, free: 14.52 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004856/0.2137, allocations: 314.3 kB / 437.5 MB, free: 14.21 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003035/0.2167, allocations: 1.151 MB / 438.6 MB, free: 13.06 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009803/0.2177, allocations: 1.113 MB / 439.7 MB, free: 11.95 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001558/0.2179, allocations: 76.62 kB / 439.8 MB, free: 11.88 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009029/0.2269, allocations: 7.507 MB / 447.3 MB, free: 4.363 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003145/0.2272, allocations: 274.9 kB / 447.6 MB, free: 4.094 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.31e-05/0.2273, allocations: 16 kB / 447.6 MB, free: 4.078 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001182/0.2285, allocations: 0.6712 MB / 448.3 MB, free: 3.406 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 9.484e-05/0.2286, allocations: 79.7 kB / 448.4 MB, free: 3.328 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001832/0.2288, allocations: 193 kB / 448.5 MB, free: 3.133 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000632/0.2294, allocations: 0.604 MB / 449.1 MB, free: 2.527 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.2294, allocations: 0 / 449.1 MB, free: 2.527 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2294, allocations: 0 / 449.1 MB, free: 2.527 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.69e-06/0.2294, allocations: 4 kB / 449.2 MB, free: 2.523 MB / 314.7 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.0007464/0.2302, allocations: 0.5809 MB / 449.7 MB, free: 1.895 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.2302, allocations: 15.97 kB / 449.7 MB, free: 1.879 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.653e-05/0.2303, allocations: 66.72 kB / 449.8 MB, free: 1.805 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003782/0.2307, allocations: 52.55 kB / 449.9 MB, free: 1.754 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000318/0.231, allocations: 283.7 kB / 450.1 MB, free: 1.438 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.921e-05/0.2311, allocations: 20.94 kB / 450.2 MB, free: 1.418 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.918e-05/0.2311, allocations: 28.38 kB / 450.2 MB, free: 1.391 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004604/0.2316, allocations: 338.4 kB / 450.5 MB, free: 1.023 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.464e-05/0.2316, allocations: 4 kB / 450.5 MB, free: 1.02 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.206e-05/0.2316, allocations: 16 kB / 450.5 MB, free: 1.004 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.285e-06/0.2316, allocations: 8 kB / 450.5 MB, free: 0.9961 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000303/0.232, allocations: 214 kB / 450.8 MB, free: 0.7891 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01181/0.2438, allocations: 5.908 MB / 456.7 MB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002669/0.2441, allocations: 166.6 kB / 456.8 MB, free: 10.2 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001264/0.2442, allocations: 92.86 kB / 456.9 MB, free: 10.11 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009788/0.254, allocations: 3.881 MB / 460.8 MB, free: 5.93 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.693e-05/0.254, allocations: 42.5 kB / 460.8 MB, free: 5.879 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 1.573e-06/0.254, allocations: 0 / 460.8 MB, free: 5.879 MB / 330.7 MB Notification: Performance of matching and sorting (n=26): time 0.005549/0.2596, allocations: 1.429 MB / 462.3 MB, free: 4.375 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.296e-05/0.2596, allocations: 51.41 kB / 462.3 MB, free: 4.312 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002465/0.2599, allocations: 254.6 kB / 462.6 MB, free: 4.051 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.514e-05/0.2599, allocations: 29.7 kB / 462.6 MB, free: 4.016 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001046/0.26, allocations: 184.1 kB / 462.8 MB, free: 3.832 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.153e-05/0.2601, allocations: 94.64 kB / 462.9 MB, free: 3.738 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.385e-05/0.2601, allocations: 4 kB / 462.9 MB, free: 3.734 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.2602, allocations: 346.8 kB / 463.2 MB, free: 3.387 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001519/0.2604, allocations: 87.97 kB / 463.3 MB, free: 3.301 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002007/0.2606, allocations: 179.1 kB / 463.5 MB, free: 3.086 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000362/0.261, allocations: 300 kB / 463.8 MB, free: 2.754 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.261, allocations: 0 / 463.8 MB, free: 2.754 MB / 330.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006325/0.2616, allocations: 406.6 kB / 464.2 MB, free: 2.344 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/0.2617, allocations: 4 kB / 464.2 MB, free: 2.34 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-06/0.2617, allocations: 4 kB / 464.2 MB, free: 2.336 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003159/0.2648, allocations: 405.7 kB / 464.6 MB, free: 1.934 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002374/0.2651, allocations: 67.91 kB / 464.6 MB, free: 1.867 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001356/0.2664, allocations: 1.879 MB / 466.5 MB, free: 15.83 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001949/0.2667, allocations: 28.03 kB / 466.5 MB, free: 15.8 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.474e-05/0.2667, allocations: 16 kB / 466.6 MB, free: 15.79 MB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001414/0.2668, allocations: 150.5 kB / 466.7 MB, free: 15.63 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.03e-05/0.2669, allocations: 35.66 kB / 466.7 MB, free: 15.59 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006652/0.2676, allocations: 494.7 kB / 467.2 MB, free: 15.09 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.652e-06/0.2676, allocations: 4 kB / 467.2 MB, free: 15.09 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.222e-06/0.2676, allocations: 0 / 467.2 MB, free: 15.09 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006054/0.2682, allocations: 0.7158 MB / 467.9 MB, free: 14.29 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001157/0.2694, allocations: 0.9494 MB / 468.9 MB, free: 13.27 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.2694, allocations: 0 / 468.9 MB, free: 13.27 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001779/0.2696, allocations: 43.92 kB / 468.9 MB, free: 13.23 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001625/0.2712, allocations: 336.2 kB / 469.3 MB, free: 12.9 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.882e-05/0.2712, allocations: 4 kB / 469.3 MB, free: 12.89 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004384/0.2717, allocations: 0.646 MB / 469.9 MB, free: 12.22 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.2717, allocations: 4.031 kB / 469.9 MB, free: 12.22 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008426/0.2726, allocations: 0.7164 MB / 470.6 MB, free: 11.48 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.948e-05/0.2726, allocations: 112.7 kB / 470.7 MB, free: 11.35 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.651e-05/0.2727, allocations: 4 kB / 470.7 MB, free: 11.34 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001833/0.2729, allocations: 19.92 kB / 470.8 MB, free: 11.32 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.765e-05/0.2729, allocations: 11.98 kB / 470.8 MB, free: 11.31 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.339e-05/0.2729, allocations: 15.98 kB / 470.8 MB, free: 11.3 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001625/0.2731, allocations: 182 kB / 471 MB, free: 11.12 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.2731, allocations: 4 kB / 471 MB, free: 11.12 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005463/0.2737, allocations: 191.9 kB / 471.2 MB, free: 10.93 MB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.001515/0.2752, allocations: 1.423 MB / 472.6 MB, free: 9.477 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006826/0.2759, allocations: 451.1 kB / 473 MB, free: 9.023 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.2759, allocations: 4.75 kB / 473 MB, free: 9.02 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004562/0.2764, allocations: 227.8 kB / 473.3 MB, free: 8.797 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000925/0.2773, allocations: 161.6 kB / 473.4 MB, free: 8.645 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002702/0.28, allocations: 2.086 MB / 475.5 MB, free: 6.469 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003041/0.2803, allocations: 0.7763 MB / 476.3 MB, free: 5.668 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000139/0.2805, allocations: 103.4 kB / 476.4 MB, free: 5.566 MB / 346.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2805, allocations: 0 / 476.4 MB, free: 5.566 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.506/3.787, allocations: 8.947 MB / 485.3 MB, free: 12.61 MB / 362.7 MB (rm -f Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe >> ../files/Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir1_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Media_Examples_ReferenceAir_DryAir1_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Media_Examples_ReferenceAir_DryAir1.fmu > Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/DryAir1/DryAir1.csv","../files/Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches