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.001153/0.001153, allocations: 103.8 kB / 17.16 MB, free: 6.316 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.001163/0.001163, allocations: 190 kB / 18.07 MB, free: 5.414 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.172/1.172, allocations: 205.1 MB / 223.9 MB, free: 12.47 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.0009618/0.0009618, allocations: 56.33 kB / 280.1 MB, free: 3.48 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07074/0.07171, allocations: 46.62 MB / 326.7 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TestOnly.MixIdealGasAir): time 0.2821/0.3538, allocations: 148.9 MB / 475.6 MB, free: 2.617 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003187/0.357, allocations: 3.139 MB / 478.8 MB, free: 15.49 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.142e-05/0.3571, allocations: 4 kB / 478.8 MB, free: 15.49 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002961/0.3574, allocations: 55.77 kB / 478.8 MB, free: 15.43 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001599/0.3591, allocations: 0.92 MB / 479.7 MB, free: 14.51 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003886/0.3595, allocations: 188.8 kB / 479.9 MB, free: 14.33 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003879/0.3598, allocations: 478.5 kB / 480.4 MB, free: 13.86 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.043e-05/0.3599, allocations: 13.08 kB / 480.4 MB, free: 13.85 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000197/0.3601, allocations: 139.5 kB / 480.5 MB, free: 13.71 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001586/0.3603, allocations: 119.6 kB / 480.7 MB, free: 13.59 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.799e-05/0.3603, allocations: 12 kB / 480.7 MB, free: 13.58 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002394/0.3627, allocations: 1.722 MB / 482.4 MB, free: 11.86 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.309e-05/0.3628, allocations: 71.83 kB / 482.5 MB, free: 11.79 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001128/0.3629, allocations: 99.58 kB / 482.6 MB, free: 11.69 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001389/0.3643, allocations: 1.115 MB / 483.7 MB, free: 10.57 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.3643, allocations: 7.938 kB / 483.7 MB, free: 10.56 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.3643, allocations: 4 kB / 483.7 MB, free: 10.56 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.355e-06/0.3644, allocations: 7.875 kB / 483.7 MB, free: 10.55 MB / 382.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.0008364/0.3652, allocations: 0.5314 MB / 484.2 MB, free: 9.973 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/0.3653, allocations: 8.031 kB / 484.2 MB, free: 9.965 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.527e-05/0.3653, allocations: 54.73 kB / 484.3 MB, free: 9.902 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003572/0.3689, allocations: 384.2 kB / 484.7 MB, free: 9.527 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003166/0.3692, allocations: 264 kB / 484.9 MB, free: 9.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.536e-05/0.3693, allocations: 12.75 kB / 484.9 MB, free: 9.219 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.965e-05/0.3693, allocations: 23.94 kB / 485 MB, free: 9.195 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000909/0.3702, allocations: 489.3 kB / 485.4 MB, free: 8.707 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.215e-06/0.3703, allocations: 3.938 kB / 485.4 MB, free: 8.703 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.431e-05/0.3703, allocations: 12 kB / 485.5 MB, free: 8.691 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.143e-06/0.3703, allocations: 7.984 kB / 485.5 MB, free: 8.684 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000954/0.3713, allocations: 0.5113 MB / 486 MB, free: 8.172 MB / 382.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.002012/0.3733, allocations: 0.9897 MB / 487 MB, free: 7.129 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005595/0.3739, allocations: 301 kB / 487.3 MB, free: 6.816 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002517/0.3741, allocations: 145.7 kB / 487.4 MB, free: 6.668 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001539/0.3757, allocations: 0.8931 MB / 488.3 MB, free: 5.629 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.362e-05/0.3757, allocations: 34.56 kB / 488.3 MB, free: 5.586 MB / 382.1 MB Notification: Performance of pre-optimization done (n=29): time 2.174e-06/0.3757, allocations: 0 / 488.3 MB, free: 5.586 MB / 382.1 MB Notification: Performance of matching and sorting (n=29): time 0.0008814/0.3766, allocations: 409.8 kB / 488.7 MB, free: 5.18 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.849e-05/0.3767, allocations: 81.11 kB / 488.8 MB, free: 5.082 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.239e-05/0.3768, allocations: 113.8 kB / 488.9 MB, free: 4.961 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.486e-05/0.3768, allocations: 29.7 kB / 488.9 MB, free: 4.926 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.626e-05/0.3769, allocations: 108.4 kB / 489.1 MB, free: 4.812 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.725e-05/0.3769, allocations: 110.4 kB / 489.2 MB, free: 4.703 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001046/0.3771, allocations: 62.02 kB / 489.2 MB, free: 4.637 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.719e-05/0.3772, allocations: 326.8 kB / 489.5 MB, free: 4.309 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002191/0.3774, allocations: 116.5 kB / 489.7 MB, free: 4.195 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002816/0.3777, allocations: 211.5 kB / 489.9 MB, free: 3.953 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005006/0.3782, allocations: 332.2 kB / 490.2 MB, free: 3.594 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.3782, allocations: 7.938 kB / 490.2 MB, free: 3.586 MB / 382.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.00067/0.3789, allocations: 382.3 kB / 490.6 MB, free: 3.207 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.3789, allocations: 7.984 kB / 490.6 MB, free: 3.199 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.159e-06/0.3789, allocations: 4 kB / 490.6 MB, free: 3.195 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/0.3789, allocations: 4 kB / 490.6 MB, free: 3.191 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003968/0.3793, allocations: 71.91 kB / 490.7 MB, free: 3.121 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.187e-06/0.3793, allocations: 11.98 kB / 490.7 MB, free: 3.109 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002925/0.3796, allocations: 37.56 kB / 490.7 MB, free: 3.074 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.457e-05/0.3797, allocations: 19.98 kB / 490.7 MB, free: 3.055 MB / 382.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.0001274/0.3798, allocations: 145.7 kB / 490.9 MB, free: 2.902 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.621e-05/0.3799, allocations: 15.89 kB / 490.9 MB, free: 2.887 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007269/0.3807, allocations: 376.3 kB / 491.2 MB, free: 2.523 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.867e-06/0.3807, allocations: 7.984 kB / 491.3 MB, free: 2.516 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.3807, allocations: 0 / 491.3 MB, free: 2.516 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.3807, allocations: 0 / 491.3 MB, free: 2.516 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005273/0.3812, allocations: 368.5 kB / 491.6 MB, free: 2.105 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.3812, allocations: 0 / 491.6 MB, free: 2.105 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004024/0.3817, allocations: 59.95 kB / 491.7 MB, free: 2.047 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.039e-06/0.3817, allocations: 0 / 491.7 MB, free: 2.047 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.266e-05/0.3817, allocations: 15.92 kB / 491.7 MB, free: 2.031 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.3817, allocations: 4.875 kB / 491.7 MB, free: 2.027 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.3817, allocations: 0 / 491.7 MB, free: 2.027 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008026/0.3825, allocations: 0.5531 MB / 492.2 MB, free: 1.457 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.382e-05/0.3826, allocations: 88.95 kB / 492.3 MB, free: 1.352 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.094e-05/0.3826, allocations: 8.062 kB / 492.3 MB, free: 1.344 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003742/0.383, allocations: 20.11 kB / 492.4 MB, free: 1.324 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.898e-05/0.3831, allocations: 19.97 kB / 492.4 MB, free: 1.305 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.766e-05/0.3831, allocations: 19.98 kB / 492.4 MB, free: 1.285 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.211e-05/0.3831, allocations: 87.28 kB / 492.5 MB, free: 1.199 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.332e-06/0.3832, allocations: 0 / 492.5 MB, free: 1.199 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007847/0.3839, allocations: 247.6 kB / 492.7 MB, free: 0.957 MB / 382.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.001925/0.3859, allocations: 1.422 MB / 494.1 MB, free: 15.5 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005464/0.3864, allocations: 299.7 kB / 494.4 MB, free: 15.21 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/0.3864, allocations: 0 / 494.4 MB, free: 15.21 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002483/0.3867, allocations: 155.7 kB / 494.6 MB, free: 15.06 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005914/0.3873, allocations: 81.62 kB / 494.7 MB, free: 14.98 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003062/0.3904, allocations: 2.784 MB / 497.5 MB, free: 12.05 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000242/0.3906, allocations: 0.7361 MB / 498.2 MB, free: 11.29 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004602/0.3911, allocations: 86.5 kB / 498.3 MB, free: 11.21 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001489/0.3912, allocations: 63.34 kB / 498.3 MB, free: 11.15 MB / 398.1 MB Notification: Performance of SimCode: time 1.372e-06/0.3913, allocations: 0 / 498.3 MB, free: 11.15 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2336/0.6249, allocations: 10.4 MB / 0.4968 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001936/0.6251, allocations: 195.3 kB / 0.497 GB, free: 460 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.579/3.204, allocations: 0 / 0.497 GB, free: 460 kB / 398.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.TestOnly.MixIdealGasAir_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_TestOnly_MixIdealGasAir_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/TestOnly/MixIdealGasAir/MixIdealGasAir.csv","../files/Modelica_3.2.3_Modelica.Media.Examples.TestOnly.MixIdealGasAir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches