Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.DryAirNasa.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.DryAirNasa,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_DryAirNasa",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.DryAirNasa,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_DryAirNasa",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001063/0.001063, allocations: 114.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001101/0.001101, allocations: 209.2 kB / 18.74 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2101/0.2101, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001449/0.001449, allocations: 79.86 kB / 480.8 MB, free: 4.539 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3891/0.3906, allocations: 62.43 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.DryAirNasa): time 0.2414/0.632, allocations: 177.3 MB / 0.7037 GB, free: 15.84 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.008959/0.641, allocations: 5.335 MB / 0.7089 GB, free: 10.48 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009226/0.642, allocations: 19.88 kB / 0.7089 GB, free: 10.46 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001243/0.6433, allocations: 314 kB / 0.7092 GB, free: 10.15 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.003996/0.6473, allocations: 1.274 MB / 0.7104 GB, free: 8.879 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.002599/0.6499, allocations: 0.9712 MB / 0.7114 GB, free: 7.914 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002438/0.6524, allocations: 1.86 MB / 0.7132 GB, free: 6.047 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009048/0.6533, allocations: 457.4 kB / 0.7136 GB, free: 5.598 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002899/0.6562, allocations: 1.105 MB / 0.7147 GB, free: 4.488 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00139/0.6576, allocations: 0.6501 MB / 0.7154 GB, free: 3.836 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0002368/0.6579, allocations: 60 kB / 0.7154 GB, free: 3.777 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001779/0.6597, allocations: 0.6242 MB / 0.716 GB, free: 3.152 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0004305/0.6601, allocations: 271.3 kB / 0.7163 GB, free: 2.887 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0007854/0.6609, allocations: 394.2 kB / 0.7167 GB, free: 2.5 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.00248/0.6634, allocations: 1.316 MB / 0.7179 GB, free: 1.18 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.6634, allocations: 0 / 0.7179 GB, free: 1.18 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.763e-06/0.6634, allocations: 0 / 0.7179 GB, free: 1.18 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4e-05/0.6635, allocations: 0 / 0.7179 GB, free: 1.18 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.003101/0.6666, allocations: 1.121 MB / 0.719 GB, free: 8 kB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 0.2533/0.9199, allocations: 8.578 kB / 0.7191 GB, free: 186.4 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003296/0.9203, allocations: 97.86 kB / 0.7191 GB, free: 186.4 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001087/0.9214, allocations: 140.2 kB / 0.7193 GB, free: 186.4 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009856/0.9224, allocations: 0.5323 MB / 0.7198 GB, free: 186.1 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.908e-05/0.9225, allocations: 99.36 kB / 0.7199 GB, free: 186 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001091/0.9226, allocations: 51.5 kB / 0.7199 GB, free: 186 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00135/0.9239, allocations: 0.8218 MB / 0.7207 GB, free: 185.5 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.235e-05/0.924, allocations: 6.422 kB / 0.7208 GB, free: 185.5 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.924e-05/0.9241, allocations: 23.56 kB / 0.7208 GB, free: 185.5 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.303e-05/0.9241, allocations: 37.47 kB / 0.7208 GB, free: 185.5 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001005/0.9252, allocations: 0.6272 MB / 0.7214 GB, free: 185.3 MB / 0.5606 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003497/0.9287, allocations: 3.933 MB / 0.7253 GB, free: 181.8 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000499/0.9292, allocations: 352.4 kB / 0.7256 GB, free: 181.6 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002432/0.9294, allocations: 171.1 kB / 0.7258 GB, free: 181.6 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 9.128e-05/0.9295, allocations: 96.09 kB / 0.7259 GB, free: 181.5 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.594e-05/0.9296, allocations: 44.16 kB / 0.7259 GB, free: 181.4 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=34): time 2.214e-06/0.9296, allocations: 0 / 0.7259 GB, free: 181.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=39): time 0.00521/0.9348, allocations: 1.685 MB / 0.7275 GB, free: 180.4 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.995e-05/0.9348, allocations: 136.7 kB / 0.7277 GB, free: 180.2 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006079/0.9355, allocations: 0.6102 MB / 0.7283 GB, free: 179.9 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.359e-05/0.9355, allocations: 36.05 kB / 0.7283 GB, free: 179.8 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001804/0.9357, allocations: 375.8 kB / 0.7287 GB, free: 179.5 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 9.077e-05/0.9358, allocations: 153.7 kB / 0.7288 GB, free: 179.4 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001939/0.936, allocations: 164.3 kB / 0.729 GB, free: 179.3 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 7.785e-05/0.9361, allocations: 377.4 kB / 0.7293 GB, free: 178.9 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003207/0.9364, allocations: 201.3 kB / 0.7295 GB, free: 178.8 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004427/0.9368, allocations: 0.5147 MB / 0.73 GB, free: 178.3 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008666/0.9377, allocations: 0.744 MB / 0.7307 GB, free: 177.7 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.601e-06/0.9377, allocations: 6.562 kB / 0.7308 GB, free: 177.7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001415/0.9392, allocations: 0.889 MB / 0.7316 GB, free: 177.2 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.421e-05/0.9392, allocations: 15.77 kB / 0.7316 GB, free: 177.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.367e-05/0.9392, allocations: 10.16 kB / 0.7316 GB, free: 177.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001308/0.9405, allocations: 310.7 kB / 0.7319 GB, free: 177.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000377/0.9409, allocations: 129.7 kB / 0.7321 GB, free: 177.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009042/0.9418, allocations: 0.927 MB / 0.733 GB, free: 176.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000474/0.9423, allocations: 35.14 kB / 0.733 GB, free: 176.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.73e-05/0.9424, allocations: 65.23 kB / 0.7331 GB, free: 176.3 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {(2,17)} Notification: Performance of prepare postOptimizeDAE: time 0.0002897/0.9427, allocations: 252.3 kB / 0.7333 GB, free: 176.1 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000116/0.9428, allocations: 70.77 kB / 0.7334 GB, free: 176.1 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001449/0.9443, allocations: 0.864 MB / 0.7342 GB, free: 175.6 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.895e-06/0.9443, allocations: 4.594 kB / 0.7342 GB, free: 175.6 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.9443, allocations: 0 / 0.7342 GB, free: 175.6 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.9443, allocations: 5.266 kB / 0.7342 GB, free: 175.6 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001735/0.9461, allocations: 1.459 MB / 0.7357 GB, free: 174.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.9461, allocations: 0.5 kB / 0.7357 GB, free: 174.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009729/0.9471, allocations: 213.6 kB / 0.7359 GB, free: 174.4 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.053e-05/0.9471, allocations: 24.94 kB / 0.7359 GB, free: 174.4 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.459e-05/0.9472, allocations: 23.89 kB / 0.7359 GB, free: 174.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001351/0.9485, allocations: 2.878 MB / 0.7387 GB, free: 171.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.9486, allocations: 2.938 kB / 0.7387 GB, free: 171.4 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009662/0.9495, allocations: 0.8159 MB / 0.7395 GB, free: 170.9 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002253/0.9498, allocations: 196.8 kB / 0.7397 GB, free: 170.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.782e-05/0.9499, allocations: 15.89 kB / 0.7397 GB, free: 170.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003882/0.9503, allocations: 11.69 kB / 0.7397 GB, free: 170.7 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.518e-05/0.9504, allocations: 50.73 kB / 0.7398 GB, free: 170.7 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.37e-05/0.9504, allocations: 43.67 kB / 0.7398 GB, free: 170.7 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0003953/0.9508, allocations: 439 kB / 0.7402 GB, free: 170.3 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.21e-07/0.9508, allocations: 4 kB / 0.7402 GB, free: 170.3 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0007809/0.9516, allocations: 251.8 kB / 0.7405 GB, free: 170 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001719/0.9533, allocations: 1.565 MB / 0.742 GB, free: 168.5 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0009183/0.9543, allocations: 0.5605 MB / 0.7426 GB, free: 167.9 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.399e-06/0.9543, allocations: 5.219 kB / 0.7426 GB, free: 167.9 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0008552/0.9551, allocations: 415.1 kB / 0.743 GB, free: 167.5 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001475/0.9566, allocations: 359.8 kB / 0.7433 GB, free: 167.1 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006161/0.9628, allocations: 6.342 MB / 0.7495 GB, free: 160.4 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002715/0.9631, allocations: 0.9339 MB / 0.7504 GB, free: 159.4 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0008074/0.9639, allocations: 473.7 kB / 0.7509 GB, free: 159 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003898/0.9643, allocations: 279.3 kB / 0.7511 GB, free: 158.7 MB / 0.5606 GB Notification: Performance of SimCode: time 5.91e-07/0.9643, allocations: 0 / 0.7511 GB, free: 158.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04434/1.009, allocations: 24.39 MB / 0.7749 GB, free: 134.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.76/13.77, allocations: 6.5 kB / 0.7749 GB, free: 134.6 MB / 0.5606 GB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.DryAirNasa.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.DryAirNasa.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.DryAirNasa.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.DryAirNasa.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.DryAirNasa_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_DryAirNasa.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.DryAirNasa.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.DryAirNasa_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Air/DryAirNasa/DryAirNasa.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.DryAirNasa.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,volume.medium.T,volume.medium.p Variables in the result:time,volume.medium.T,volume.medium.p