Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestOnly.MixIdealGasAir.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.TestOnly.MixIdealGasAir,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestOnly_MixIdealGasAir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.MixIdealGasAir,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestOnly_MixIdealGasAir",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001058/0.001058, allocations: 103.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001122/0.001122, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.564/1.564, allocations: 227.4 MB / 246.3 MB, free: 9.047 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2315/0.2315, allocations: 46.11 MB / 343.6 MB, free: 11.6 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001464/0.001464, allocations: 81.39 kB / 416.9 MB, free: 20.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1629/0.1644, allocations: 62.46 MB / 479.4 MB, free: 5.641 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.MixIdealGasAir): time 0.5623/0.7267, allocations: 150.6 MB / 0.6152 GB, free: 13.27 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.005007/0.7318, allocations: 3.332 MB / 0.6184 GB, free: 9.949 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001934/0.732, allocations: 0 / 0.6184 GB, free: 9.949 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004637/0.7325, allocations: 63.7 kB / 0.6185 GB, free: 9.887 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003469/0.736, allocations: 0.9871 MB / 0.6195 GB, free: 8.898 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006416/0.7367, allocations: 179.3 kB / 0.6196 GB, free: 8.727 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007564/0.7375, allocations: 0.5062 MB / 0.6201 GB, free: 8.219 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.012e-05/0.7376, allocations: 13.11 kB / 0.6201 GB, free: 8.207 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004395/0.738, allocations: 147.5 kB / 0.6203 GB, free: 8.062 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003448/0.7384, allocations: 123.6 kB / 0.6204 GB, free: 7.941 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 6.278e-05/0.7384, allocations: 12 kB / 0.6204 GB, free: 7.93 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004002/0.7424, allocations: 1.812 MB / 0.6222 GB, free: 6.113 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001432/0.7426, allocations: 79.77 kB / 0.6223 GB, free: 6.035 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001871/0.7428, allocations: 99.58 kB / 0.6224 GB, free: 5.938 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002844/0.7457, allocations: 1.15 MB / 0.6235 GB, free: 4.785 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.7457, allocations: 3.938 kB / 0.6235 GB, free: 4.781 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.7457, allocations: 4 kB / 0.6235 GB, free: 4.777 MB / 462.1 MB Notification: Performance of Transformations before backend: time 7.945e-06/0.7457, allocations: 0 / 0.6235 GB, free: 4.777 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.001465/0.7472, allocations: 0.5507 MB / 0.624 GB, free: 4.18 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.173e-05/0.7472, allocations: 8.875 kB / 0.624 GB, free: 4.172 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.59e-05/0.7473, allocations: 54.73 kB / 0.6241 GB, free: 4.109 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00505/0.7524, allocations: 389.2 kB / 0.6245 GB, free: 3.73 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004831/0.7529, allocations: 264 kB / 0.6247 GB, free: 3.434 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.85e-05/0.7529, allocations: 20.3 kB / 0.6247 GB, free: 3.414 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.949e-05/0.753, allocations: 20 kB / 0.6248 GB, free: 3.395 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001095/0.7541, allocations: 492 kB / 0.6252 GB, free: 2.902 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.581e-05/0.7542, allocations: 0 / 0.6252 GB, free: 2.902 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.97e-05/0.7542, allocations: 23.92 kB / 0.6252 GB, free: 2.879 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.07e-05/0.7543, allocations: 11.98 kB / 0.6253 GB, free: 2.867 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001126/0.7554, allocations: 0.516 MB / 0.6258 GB, free: 2.352 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.002718/0.7581, allocations: 1.012 MB / 0.6267 GB, free: 1.285 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006677/0.7588, allocations: 305 kB / 0.627 GB, free: 0.9727 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003163/0.7591, allocations: 157.6 kB / 0.6272 GB, free: 0.8125 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002034/0.7612, allocations: 0.9685 MB / 0.6281 GB, free: 15.68 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.648e-05/0.7612, allocations: 34.56 kB / 0.6282 GB, free: 15.63 MB / 478.1 MB Notification: Performance of pre-optimization done (n=31): time 2.255e-06/0.7612, allocations: 0 / 0.6282 GB, free: 15.63 MB / 478.1 MB Notification: Performance of matching and sorting (n=31): time 0.001093/0.7624, allocations: 421.8 kB / 0.6286 GB, free: 15.21 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.189e-05/0.7624, allocations: 81.11 kB / 0.6286 GB, free: 15.12 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000145/0.7626, allocations: 118.6 kB / 0.6288 GB, free: 15 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 5.287e-05/0.7626, allocations: 33.7 kB / 0.6288 GB, free: 14.96 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001097/0.7628, allocations: 116.3 kB / 0.6289 GB, free: 14.84 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001091/0.7629, allocations: 106.4 kB / 0.629 GB, free: 14.73 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001524/0.763, allocations: 74 kB / 0.6291 GB, free: 14.65 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001754/0.7632, allocations: 330.8 kB / 0.6294 GB, free: 14.32 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000274/0.7635, allocations: 116.3 kB / 0.6295 GB, free: 14.21 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003433/0.7639, allocations: 206.9 kB / 0.6297 GB, free: 13.97 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006484/0.7645, allocations: 359.1 kB / 0.63 GB, free: 13.59 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/0.7645, allocations: 0 / 0.63 GB, free: 13.59 MB / 478.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008864/0.7654, allocations: 387.2 kB / 0.6304 GB, free: 13.2 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.323e-05/0.7655, allocations: 4 kB / 0.6304 GB, free: 13.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/0.7655, allocations: 4 kB / 0.6304 GB, free: 13.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.138e-05/0.7655, allocations: 4 kB / 0.6304 GB, free: 13.19 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004331/0.7659, allocations: 75.89 kB / 0.6305 GB, free: 13.12 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.423e-05/0.766, allocations: 11.94 kB / 0.6305 GB, free: 13.11 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003424/0.7663, allocations: 39.98 kB / 0.6305 GB, free: 13.07 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.36e-05/0.7664, allocations: 21.97 kB / 0.6306 GB, free: 13.05 MB / 478.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 (40): * Single equations (assignments): 39 * Array equations: 1 * 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.0001891/0.7666, allocations: 149.6 kB / 0.6307 GB, free: 12.89 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001347/0.7667, allocations: 15.81 kB / 0.6307 GB, free: 12.88 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008907/0.7676, allocations: 381 kB / 0.6311 GB, free: 12.5 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.57e-05/0.7676, allocations: 7.984 kB / 0.6311 GB, free: 12.49 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.7677, allocations: 0 / 0.6311 GB, free: 12.49 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.7677, allocations: 7.938 kB / 0.6311 GB, free: 12.48 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007144/0.7684, allocations: 377.1 kB / 0.6315 GB, free: 12.06 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.7684, allocations: 0 / 0.6315 GB, free: 12.06 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004325/0.7688, allocations: 59.91 kB / 0.6315 GB, free: 12 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.51e-06/0.7689, allocations: 0 / 0.6315 GB, free: 12 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.847e-05/0.7689, allocations: 15.98 kB / 0.6315 GB, free: 11.99 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.7689, allocations: 0 / 0.6315 GB, free: 11.99 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.7689, allocations: 4 kB / 0.6315 GB, free: 11.98 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001076/0.77, allocations: 0.5731 MB / 0.6321 GB, free: 11.39 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.758e-05/0.7701, allocations: 95.3 kB / 0.6322 GB, free: 11.29 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.992e-05/0.7702, allocations: 8.062 kB / 0.6322 GB, free: 11.28 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004113/0.7706, allocations: 19.98 kB / 0.6322 GB, free: 11.26 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.435e-05/0.7706, allocations: 19.91 kB / 0.6322 GB, free: 11.24 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.421e-05/0.7707, allocations: 19.98 kB / 0.6323 GB, free: 11.22 MB / 478.1 MB Notification: Performance of sorting global known variables: time 6.956e-05/0.7708, allocations: 95.56 kB / 0.6323 GB, free: 11.12 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.7708, allocations: 0 / 0.6323 GB, free: 11.12 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001199/0.772, allocations: 247.7 kB / 0.6326 GB, free: 10.88 MB / 478.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 (30): * Single equations (assignments): 29 * Array equations: 1 * 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.003028/0.775, allocations: 1.457 MB / 0.634 GB, free: 9.398 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0007127/0.7757, allocations: 310.5 kB / 0.6343 GB, free: 9.098 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.7757, allocations: 0 / 0.6343 GB, free: 9.098 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003011/0.7761, allocations: 159.4 kB / 0.6344 GB, free: 8.945 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007058/0.7768, allocations: 88.47 kB / 0.6345 GB, free: 8.859 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00456/0.7813, allocations: 2.855 MB / 0.6373 GB, free: 5.863 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005152/0.7819, allocations: 0.7287 MB / 0.638 GB, free: 5.105 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0005571/0.7824, allocations: 86.02 kB / 0.6381 GB, free: 5.023 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001899/0.7826, allocations: 67.41 kB / 0.6382 GB, free: 4.961 MB / 478.1 MB Notification: Performance of SimCode: time 3.847e-06/0.7827, allocations: 0 / 0.6382 GB, free: 4.961 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02944/0.8121, allocations: 10.68 MB / 0.6486 GB, free: 10.41 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002616/0.8124, allocations: 204.5 kB / 0.6488 GB, free: 10.14 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.305/3.117, allocations: 0 / 0.6488 GB, free: 10.14 MB / 494.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestOnly.MixIdealGasAir.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Media.TestOnly.MixIdealGasAir_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Media_TestOnly_MixIdealGasAir_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Media_TestOnly_MixIdealGasAir.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Media.TestOnly.MixIdealGasAir_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestOnly/MixIdealGasAir/MixIdealGasAir.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Media.TestOnly.MixIdealGasAir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches