Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.TestOnly.MixIdealGasAir.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.TestOnly.MixIdealGasAir,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_TestOnly_MixIdealGasAir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TestOnly.MixIdealGasAir,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_TestOnly_MixIdealGasAir",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.001296/0.001296, allocations: 110.6 kB / 17.73 MB, free: 5.32 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.001194/0.001194, allocations: 190.9 kB / 18.67 MB, free: 4.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.371/1.371, allocations: 205.1 MB / 224.5 MB, free: 12.2 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.001626/0.001626, allocations: 51.92 kB / 328 MB, free: 3.797 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08869/0.09033, allocations: 46.63 MB / 374.7 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TestOnly.MixIdealGasAir): time 0.3457/0.436, allocations: 151.2 MB / 0.5135 GB, free: 8.277 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.003691/0.4398, allocations: 3.039 MB / 0.5165 GB, free: 5.23 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.546e-05/0.4399, allocations: 3.938 kB / 0.5165 GB, free: 5.227 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003346/0.4402, allocations: 59.64 kB / 0.5165 GB, free: 5.168 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002271/0.4425, allocations: 1.011 MB / 0.5175 GB, free: 4.152 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004875/0.443, allocations: 192.2 kB / 0.5177 GB, free: 3.965 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004321/0.4435, allocations: 358.6 kB / 0.518 GB, free: 3.613 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.628e-05/0.4435, allocations: 17.06 kB / 0.5181 GB, free: 3.598 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002388/0.4438, allocations: 147.5 kB / 0.5182 GB, free: 3.453 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001845/0.444, allocations: 103.7 kB / 0.5183 GB, free: 3.352 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.224e-05/0.444, allocations: 19.94 kB / 0.5183 GB, free: 3.332 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002628/0.4466, allocations: 1.456 MB / 0.5197 GB, free: 1.875 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001105/0.4468, allocations: 83.77 kB / 0.5198 GB, free: 1.793 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001412/0.4469, allocations: 103.6 kB / 0.5199 GB, free: 1.691 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001509/0.4484, allocations: 0.985 MB / 0.5209 GB, free: 0.707 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.4484, allocations: 0 / 0.5209 GB, free: 0.707 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.4485, allocations: 0 / 0.5209 GB, free: 0.707 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.4485, allocations: 4 kB / 0.5209 GB, free: 0.7031 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.0009273/0.4494, allocations: 0.553 MB / 0.5214 GB, free: 104 kB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/0.4495, allocations: 16.02 kB / 0.5214 GB, free: 88 kB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.85e-05/0.4495, allocations: 50.73 kB / 0.5215 GB, free: 28 kB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001365/0.4509, allocations: 201.5 kB / 0.5217 GB, free: 15.83 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003275/0.4512, allocations: 248.1 kB / 0.5219 GB, free: 15.55 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.636e-05/0.4513, allocations: 12.75 kB / 0.5219 GB, free: 15.54 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.91e-05/0.4513, allocations: 27.89 kB / 0.522 GB, free: 15.51 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006031/0.4519, allocations: 381.4 kB / 0.5223 GB, free: 15.13 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.4519, allocations: 0 / 0.5223 GB, free: 15.13 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.058e-05/0.452, allocations: 8 kB / 0.5223 GB, free: 15.12 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.614e-06/0.452, allocations: 8 kB / 0.5223 GB, free: 15.11 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005993/0.4526, allocations: 415.6 kB / 0.5227 GB, free: 14.71 MB / 462.1 MB 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.001623/0.4542, allocations: 0.8049 MB / 0.5235 GB, free: 13.85 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004151/0.4547, allocations: 235.4 kB / 0.5237 GB, free: 13.6 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001798/0.4549, allocations: 121.7 kB / 0.5239 GB, free: 13.48 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001727/0.4566, allocations: 0.8969 MB / 0.5247 GB, free: 12.43 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.85e-05/0.4566, allocations: 34.56 kB / 0.5248 GB, free: 12.39 MB / 462.1 MB Notification: Performance of pre-optimization done (n=29): time 4.668e-06/0.4567, allocations: 4 kB / 0.5248 GB, free: 12.39 MB / 462.1 MB Notification: Performance of matching and sorting (n=29): time 0.001178/0.4578, allocations: 362.8 kB / 0.5251 GB, free: 12.03 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.64e-05/0.4579, allocations: 85.05 kB / 0.5252 GB, free: 11.93 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.691e-05/0.458, allocations: 113.8 kB / 0.5253 GB, free: 11.8 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 3.639e-05/0.458, allocations: 33.7 kB / 0.5253 GB, free: 11.77 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.433e-05/0.4581, allocations: 116.5 kB / 0.5254 GB, free: 11.65 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.334e-05/0.4582, allocations: 103.1 kB / 0.5255 GB, free: 11.55 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001059/0.4583, allocations: 70.02 kB / 0.5256 GB, free: 11.47 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.4585, allocations: 322.8 kB / 0.5259 GB, free: 11.15 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001922/0.4587, allocations: 96.61 kB / 0.526 GB, free: 11.05 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000259/0.4589, allocations: 187.5 kB / 0.5262 GB, free: 10.84 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004768/0.4594, allocations: 311.7 kB / 0.5265 GB, free: 10.5 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.4594, allocations: 0 / 0.5265 GB, free: 10.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006229/0.4601, allocations: 341.8 kB / 0.5268 GB, free: 10.16 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.4601, allocations: 11.98 kB / 0.5268 GB, free: 10.14 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.4601, allocations: 0 / 0.5268 GB, free: 10.14 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/0.4601, allocations: 4 kB / 0.5268 GB, free: 10.14 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003382/0.4605, allocations: 71.91 kB / 0.5269 GB, free: 10.07 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.328e-05/0.4605, allocations: 10.59 kB / 0.5269 GB, free: 10.06 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000209/0.4607, allocations: 31.77 kB / 0.5269 GB, free: 10.03 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.798e-05/0.4608, allocations: 20 kB / 0.527 GB, free: 10.01 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001421/0.4609, allocations: 146 kB / 0.5271 GB, free: 9.859 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.587e-05/0.461, allocations: 15.91 kB / 0.5271 GB, free: 9.844 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006879/0.4617, allocations: 322.2 kB / 0.5274 GB, free: 9.512 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.4617, allocations: 4 kB / 0.5274 GB, free: 9.508 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.4617, allocations: 0 / 0.5274 GB, free: 9.508 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.4617, allocations: 4 kB / 0.5274 GB, free: 9.504 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00057/0.4623, allocations: 331.6 kB / 0.5277 GB, free: 9.141 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.4623, allocations: 0 / 0.5277 GB, free: 9.141 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003359/0.4627, allocations: 59.91 kB / 0.5278 GB, free: 9.082 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.4627, allocations: 0 / 0.5278 GB, free: 9.082 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.901e-05/0.4627, allocations: 15.06 kB / 0.5278 GB, free: 9.07 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.669e-06/0.4627, allocations: 4 kB / 0.5278 GB, free: 9.066 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.4627, allocations: 0 / 0.5278 GB, free: 9.066 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007803/0.4635, allocations: 0.5029 MB / 0.5283 GB, free: 8.547 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.255e-05/0.4636, allocations: 100.9 kB / 0.5284 GB, free: 8.43 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.826e-05/0.4636, allocations: 8.062 kB / 0.5284 GB, free: 8.422 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003129/0.464, allocations: 19.98 kB / 0.5284 GB, free: 8.402 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.082e-05/0.464, allocations: 15.98 kB / 0.5285 GB, free: 8.387 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.681e-05/0.4641, allocations: 15.98 kB / 0.5285 GB, free: 8.371 MB / 462.1 MB Notification: Performance of sorting global known variables: time 5.825e-05/0.4641, allocations: 91.81 kB / 0.5286 GB, free: 8.281 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4641, allocations: 0 / 0.5286 GB, free: 8.281 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0007195/0.4649, allocations: 231.4 kB / 0.5288 GB, free: 8.055 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (medium2.p,medium2.T,medium2.X[1],medium2.X[2],medium.p,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 (29): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001922/0.4668, allocations: 1.367 MB / 0.5301 GB, free: 6.66 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0005113/0.4673, allocations: 264.2 kB / 0.5304 GB, free: 6.402 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.4673, allocations: 0 / 0.5304 GB, free: 6.402 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002118/0.4675, allocations: 119.9 kB / 0.5305 GB, free: 6.285 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006252/0.4682, allocations: 87.81 kB / 0.5306 GB, free: 6.207 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003392/0.4716, allocations: 2.67 MB / 0.5332 GB, free: 3.387 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003685/0.472, allocations: 0.7322 MB / 0.5339 GB, free: 2.629 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0002983/0.4723, allocations: 74.02 kB / 0.534 GB, free: 2.559 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001357/0.4724, allocations: 59.42 kB / 0.534 GB, free: 2.5 MB / 462.1 MB Notification: Performance of SimCode: time 3.9e-07/0.4724, allocations: 7.938 kB / 0.534 GB, free: 2.492 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03716/0.5096, allocations: 10.62 MB / 0.5444 GB, free: 7.805 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.315/8.825, allocations: 12.05 kB / 0.5444 GB, free: 7.793 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.TestOnly.MixIdealGasAir.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.TestOnly.MixIdealGasAir.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.TestOnly.MixIdealGasAir.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.TestOnly.MixIdealGasAir.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Media.Examples.TestOnly.MixIdealGasAir_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Modelica_3_2_3_Modelica_Media_Examples_TestOnly_MixIdealGasAir.fmu > Modelica_3.2.3_Modelica.Media.Examples.TestOnly.MixIdealGasAir.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.TestOnly.MixIdealGasAir_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/TestOnly/MixIdealGasAir/MixIdealGasAir.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.TestOnly.MixIdealGasAir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches