Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.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.SimpleAir,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_SimpleAir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_SimpleAir",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001074/0.001074, allocations: 117.2 kB / 17.78 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.001117/0.001118, allocations: 208.6 kB / 18.74 MB, free: 4.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 227.4 MB / 246.9 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2085/0.2085, allocations: 46.1 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001415/0.001415, allocations: 75.89 kB / 480.8 MB, free: 4.559 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3358/0.3372, allocations: 62.43 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir): time 0.1683/0.5055, allocations: 150.5 MB / 0.6775 GB, free: 10.73 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.007734/0.5133, allocations: 5.596 MB / 0.683 GB, free: 5.117 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008281/0.5142, allocations: 19.88 kB / 0.683 GB, free: 5.098 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001311/0.5156, allocations: 337.9 kB / 0.6833 GB, free: 4.766 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.002333/0.5179, allocations: 0.8668 MB / 0.6842 GB, free: 3.895 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.002687/0.5206, allocations: 1.031 MB / 0.6852 GB, free: 2.871 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.001925/0.5225, allocations: 1.801 MB / 0.6869 GB, free: 1.062 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006084/0.5232, allocations: 461.4 kB / 0.6874 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001135/0.5243, allocations: 0.7785 MB / 0.6881 GB, free: 15.83 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009436/0.5253, allocations: 0.7125 MB / 0.6888 GB, free: 15.11 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001092/0.5254, allocations: 64 kB / 0.6889 GB, free: 15.05 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001265/0.5266, allocations: 0.5458 MB / 0.6894 GB, free: 14.5 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0003149/0.527, allocations: 259.3 kB / 0.6897 GB, free: 14.25 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0004464/0.5274, allocations: 398.2 kB / 0.69 GB, free: 13.86 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001701/0.5291, allocations: 1.14 MB / 0.6912 GB, free: 12.72 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.5292, allocations: 4 kB / 0.6912 GB, free: 12.71 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.753e-06/0.5292, allocations: 0 / 0.6912 GB, free: 12.71 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.278e-05/0.5292, allocations: 0 / 0.6912 GB, free: 12.71 MB / 0.545 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.002266/0.5315, allocations: 1.07 MB / 0.6922 GB, free: 11.59 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.5315, allocations: 8.031 kB / 0.6922 GB, free: 11.59 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001328/0.5317, allocations: 106.7 kB / 0.6923 GB, free: 11.47 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003527/0.532, allocations: 100.3 kB / 0.6924 GB, free: 11.38 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008602/0.5329, allocations: 0.5331 MB / 0.6929 GB, free: 10.8 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001144/0.533, allocations: 104.9 kB / 0.693 GB, free: 10.69 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.913e-05/0.5331, allocations: 52.12 kB / 0.6931 GB, free: 10.64 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001253/0.5344, allocations: 0.8149 MB / 0.6939 GB, free: 9.762 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.324e-05/0.5344, allocations: 4 kB / 0.6939 GB, free: 9.758 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.029e-05/0.5345, allocations: 27.98 kB / 0.6939 GB, free: 9.73 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.249e-05/0.5346, allocations: 40.92 kB / 0.6939 GB, free: 9.688 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001083/0.5356, allocations: 0.6479 MB / 0.6946 GB, free: 9.039 MB / 0.545 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.004582/0.5402, allocations: 3.967 MB / 0.6985 GB, free: 4.793 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007817/0.541, allocations: 428.2 kB / 0.6989 GB, free: 4.363 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003207/0.5414, allocations: 205.4 kB / 0.6991 GB, free: 4.16 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006047/0.542, allocations: 0.7366 MB / 0.6998 GB, free: 3.258 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.824e-05/0.542, allocations: 38.89 kB / 0.6998 GB, free: 3.211 MB / 0.545 GB Notification: Performance of pre-optimization done (n=40): time 3.046e-06/0.542, allocations: 4 kB / 0.6998 GB, free: 3.207 MB / 0.545 GB Notification: Performance of matching and sorting (n=45): time 0.003196/0.5452, allocations: 1.554 MB / 0.7013 GB, free: 1.582 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.576e-05/0.5453, allocations: 140.5 kB / 0.7015 GB, free: 1.414 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006567/0.546, allocations: 0.5655 MB / 0.702 GB, free: 0.8359 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 4.415e-05/0.5461, allocations: 33.7 kB / 0.7021 GB, free: 0.7969 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002611/0.5463, allocations: 363.9 kB / 0.7024 GB, free: 448 kB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001208/0.5465, allocations: 170.6 kB / 0.7026 GB, free: 276 kB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001989/0.5467, allocations: 142.6 kB / 0.7027 GB, free: 128 kB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000179/0.5469, allocations: 374.8 kB / 0.7031 GB, free: 15.75 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003826/0.5472, allocations: 213.9 kB / 0.7033 GB, free: 15.54 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000573/0.5478, allocations: 0.5123 MB / 0.7038 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009597/0.5488, allocations: 0.764 MB / 0.7045 GB, free: 14 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.5488, allocations: 0 / 0.7045 GB, free: 14 MB / 0.5606 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001563/0.5504, allocations: 0.9144 MB / 0.7054 GB, free: 13.08 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.009e-05/0.5504, allocations: 11.98 kB / 0.7054 GB, free: 13.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.303e-05/0.5504, allocations: 12.16 kB / 0.7054 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001344/0.5518, allocations: 284.6 kB / 0.7057 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003674/0.5522, allocations: 123.8 kB / 0.7058 GB, free: 12.65 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009927/0.5532, allocations: 0.8939 MB / 0.7067 GB, free: 11.73 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000423/0.5536, allocations: 28 kB / 0.7067 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.163e-05/0.5537, allocations: 39.98 kB / 0.7068 GB, free: 11.67 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * 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 (71): * Single equations (assignments): 70 * 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,16)} Notification: Performance of prepare postOptimizeDAE: time 0.0003525/0.5541, allocations: 241.5 kB / 0.707 GB, free: 11.42 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001247/0.5542, allocations: 67.58 kB / 0.707 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001283/0.5555, allocations: 0.7753 MB / 0.7078 GB, free: 10.55 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.948e-06/0.5555, allocations: 4 kB / 0.7078 GB, free: 10.55 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.897e-06/0.5555, allocations: 0 / 0.7078 GB, free: 10.55 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.495e-05/0.5556, allocations: 15.8 kB / 0.7078 GB, free: 10.53 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002034/0.5576, allocations: 1.413 MB / 0.7092 GB, free: 9.023 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.728e-06/0.5576, allocations: 0 / 0.7092 GB, free: 9.023 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001028/0.5586, allocations: 207.9 kB / 0.7094 GB, free: 8.82 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.764e-05/0.5587, allocations: 24.84 kB / 0.7094 GB, free: 8.793 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.476e-05/0.5588, allocations: 8 kB / 0.7094 GB, free: 8.785 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001894/0.5607, allocations: 2.873 MB / 0.7122 GB, free: 5.633 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/0.5607, allocations: 11.97 kB / 0.7122 GB, free: 5.621 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001343/0.5621, allocations: 1.013 MB / 0.7132 GB, free: 4.547 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003148/0.5624, allocations: 204.7 kB / 0.7134 GB, free: 4.328 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001052/0.5625, allocations: 16 kB / 0.7134 GB, free: 4.312 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004378/0.5629, allocations: 15.98 kB / 0.7135 GB, free: 4.297 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.133e-05/0.563, allocations: 39.89 kB / 0.7135 GB, free: 4.258 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.157e-05/0.5631, allocations: 23.98 kB / 0.7135 GB, free: 4.234 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0005061/0.5636, allocations: 427 kB / 0.7139 GB, free: 3.812 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.523e-06/0.5636, allocations: 0 / 0.7139 GB, free: 3.812 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0008199/0.5644, allocations: 227.7 kB / 0.7141 GB, free: 3.59 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 (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.002246/0.5667, allocations: 1.731 MB / 0.7158 GB, free: 1.805 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.00142/0.5681, allocations: 0.5911 MB / 0.7164 GB, free: 1.215 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.428e-06/0.5682, allocations: 7.859 kB / 0.7164 GB, free: 1.207 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001051/0.5692, allocations: 454.7 kB / 0.7169 GB, free: 0.75 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001836/0.5711, allocations: 372.2 kB / 0.7172 GB, free: 404 kB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2804/0.8515, allocations: 6.497 MB / 0.7236 GB, free: 179.5 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003674/0.8519, allocations: 0.9396 MB / 0.7245 GB, free: 178.8 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0006676/0.8526, allocations: 212.9 kB / 0.7247 GB, free: 178.8 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002871/0.8529, allocations: 234.9 kB / 0.7249 GB, free: 178.6 MB / 0.5606 GB Notification: Performance of SimCode: time 8.82e-07/0.8529, allocations: 0 / 0.7249 GB, free: 178.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06087/0.9138, allocations: 22.58 MB / 0.747 GB, free: 161.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.62/13.53, allocations: 0 / 0.747 GB, free: 161.2 MB / 0.5606 GB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir_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_SimpleAir.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Air/SimpleAir/SimpleAir.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.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