Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestOnly.MixIdealGasAir,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Media_TestOnly_MixIdealGasAir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.MixIdealGasAir,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Media_TestOnly_MixIdealGasAir",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009679/0.0009678, allocations: 199.5 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.266/1.266, allocations: 226.5 MB / 243.4 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008014/0.0008018, allocations: 94.27 kB / 295.5 MB, free: 6.883 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.364/0.364, allocations: 44.82 MB / 392.3 MB, free: 35.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002984/0.0002984, allocations: 8 kB / 465.4 MB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3546/0.3549, allocations: 62.96 MB / 0.516 GB, free: 37.1 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.MixIdealGasAir): time 0.1595/0.5145, allocations: 136 MB / 0.6488 GB, free: 1.059 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.004042/0.5186, allocations: 2.911 MB / 0.6516 GB, free: 14.14 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001463/0.5188, allocations: 0 / 0.6516 GB, free: 14.14 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003672/0.5192, allocations: 55.7 kB / 0.6517 GB, free: 14.09 MB / 474.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002697/0.5219, allocations: 0.9143 MB / 0.6526 GB, free: 13.17 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005537/0.5225, allocations: 170.9 kB / 0.6527 GB, free: 13 MB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006365/0.5231, allocations: 406.5 kB / 0.6531 GB, free: 12.61 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.292e-05/0.5232, allocations: 16.72 kB / 0.6532 GB, free: 12.59 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004313/0.5237, allocations: 139.5 kB / 0.6533 GB, free: 12.46 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003186/0.524, allocations: 119.6 kB / 0.6534 GB, free: 12.34 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 4.845e-05/0.524, allocations: 8 kB / 0.6534 GB, free: 12.33 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003389/0.5274, allocations: 1.765 MB / 0.6551 GB, free: 10.56 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001171/0.5276, allocations: 67.83 kB / 0.6552 GB, free: 10.5 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001718/0.5278, allocations: 125.3 kB / 0.6553 GB, free: 10.37 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001245/0.529, allocations: 0.7697 MB / 0.6561 GB, free: 9.598 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.894e-06/0.529, allocations: 0 / 0.6561 GB, free: 9.598 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.529, allocations: 3.938 kB / 0.6561 GB, free: 9.594 MB / 474.7 MB Notification: Performance of Transformations before backend: time 4.959e-06/0.529, allocations: 0 / 0.6561 GB, free: 9.594 MB / 474.7 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.000798/0.5298, allocations: 0.4955 MB / 0.6566 GB, free: 9.051 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/0.5299, allocations: 8.031 kB / 0.6566 GB, free: 9.043 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.38e-05/0.53, allocations: 54.73 kB / 0.6566 GB, free: 8.98 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003828/0.5338, allocations: 384.2 kB / 0.657 GB, free: 8.605 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00035/0.5342, allocations: 263.7 kB / 0.6572 GB, free: 8.309 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.697e-05/0.5342, allocations: 24.25 kB / 0.6573 GB, free: 8.285 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.725e-05/0.5343, allocations: 27.83 kB / 0.6573 GB, free: 8.258 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009294/0.5352, allocations: 481.5 kB / 0.6577 GB, free: 7.777 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.5352, allocations: 4 kB / 0.6577 GB, free: 7.773 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.384e-05/0.5353, allocations: 8 kB / 0.6578 GB, free: 7.766 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.714e-06/0.5353, allocations: 4 kB / 0.6578 GB, free: 7.762 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009788/0.5363, allocations: 0.5074 MB / 0.6583 GB, free: 7.254 MB / 474.7 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.002157/0.5385, allocations: 0.9851 MB / 0.6592 GB, free: 6.215 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005436/0.539, allocations: 285.1 kB / 0.6595 GB, free: 5.918 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002582/0.5393, allocations: 149.7 kB / 0.6596 GB, free: 5.766 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001705/0.541, allocations: 0.9761 MB / 0.6606 GB, free: 4.621 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.775e-05/0.541, allocations: 34.56 kB / 0.6606 GB, free: 4.578 MB / 474.7 MB Notification: Performance of pre-optimization done (n=29): time 3.396e-06/0.541, allocations: 4 kB / 0.6606 GB, free: 4.574 MB / 474.7 MB Notification: Performance of matching and sorting (n=29): time 0.0009179/0.542, allocations: 403.1 kB / 0.661 GB, free: 4.176 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.61e-05/0.542, allocations: 81.11 kB / 0.6611 GB, free: 4.078 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.676e-05/0.5421, allocations: 117.8 kB / 0.6612 GB, free: 3.953 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 3.451e-05/0.5422, allocations: 33.7 kB / 0.6612 GB, free: 3.914 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.728e-05/0.5422, allocations: 112.4 kB / 0.6613 GB, free: 3.801 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.971e-05/0.5423, allocations: 102.5 kB / 0.6614 GB, free: 3.699 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.33e-05/0.5424, allocations: 8 kB / 0.6614 GB, free: 3.691 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001145/0.5425, allocations: 326.8 kB / 0.6617 GB, free: 3.363 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002241/0.5427, allocations: 112.6 kB / 0.6619 GB, free: 3.254 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000282/0.543, allocations: 219.3 kB / 0.6621 GB, free: 3.004 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005428/0.5436, allocations: 331.8 kB / 0.6624 GB, free: 2.645 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.5436, allocations: 0 / 0.6624 GB, free: 2.645 MB / 474.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006924/0.5443, allocations: 376.7 kB / 0.6627 GB, free: 2.273 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.5443, allocations: 4 kB / 0.6627 GB, free: 2.27 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/0.5443, allocations: 4 kB / 0.6627 GB, free: 2.266 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.5443, allocations: 4 kB / 0.6628 GB, free: 2.262 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004108/0.5447, allocations: 79.83 kB / 0.6628 GB, free: 2.184 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.5448, allocations: 4.312 kB / 0.6628 GB, free: 2.18 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003026/0.5451, allocations: 36 kB / 0.6629 GB, free: 2.145 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.457e-05/0.5451, allocations: 23.98 kB / 0.6629 GB, free: 2.121 MB / 474.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001368/0.5453, allocations: 137.7 kB / 0.663 GB, free: 1.977 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.868e-05/0.5454, allocations: 19.81 kB / 0.663 GB, free: 1.957 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007655/0.5461, allocations: 373.7 kB / 0.6634 GB, free: 1.59 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.5462, allocations: 4 kB / 0.6634 GB, free: 1.586 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.5462, allocations: 0 / 0.6634 GB, free: 1.586 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.5462, allocations: 4 kB / 0.6634 GB, free: 1.582 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005816/0.5468, allocations: 376.2 kB / 0.6638 GB, free: 1.16 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.5468, allocations: 4 kB / 0.6638 GB, free: 1.156 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003982/0.5472, allocations: 55.91 kB / 0.6638 GB, free: 1.102 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.675e-06/0.5472, allocations: 4 kB / 0.6638 GB, free: 1.098 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.29e-05/0.5472, allocations: 11.98 kB / 0.6638 GB, free: 1.086 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.5473, allocations: 0 / 0.6638 GB, free: 1.086 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.5473, allocations: 4 kB / 0.6638 GB, free: 1.082 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008589/0.5481, allocations: 0.5509 MB / 0.6644 GB, free: 0.5156 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.912e-05/0.5482, allocations: 96.89 kB / 0.6645 GB, free: 412 kB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.405e-05/0.5482, allocations: 4.062 kB / 0.6645 GB, free: 408 kB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003933/0.5486, allocations: 31.83 kB / 0.6645 GB, free: 376 kB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.232e-05/0.5487, allocations: 15.97 kB / 0.6645 GB, free: 360 kB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.308e-05/0.5487, allocations: 23.92 kB / 0.6645 GB, free: 336 kB / 474.7 MB Notification: Performance of sorting global known variables: time 4.627e-05/0.5488, allocations: 87.27 kB / 0.6646 GB, free: 248 kB / 474.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5488, allocations: 0 / 0.6646 GB, free: 248 kB / 474.7 MB Notification: Performance of remove unused functions: time 0.0009297/0.5497, allocations: 239.8 kB / 0.6649 GB, free: 8 kB / 474.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002464/0.5522, allocations: 1.418 MB / 0.6662 GB, free: 14.56 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0006437/0.5529, allocations: 291.7 kB / 0.6665 GB, free: 14.28 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.5529, allocations: 0 / 0.6665 GB, free: 14.28 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002567/0.5531, allocations: 154.3 kB / 0.6667 GB, free: 14.13 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006886/0.5538, allocations: 88.69 kB / 0.6667 GB, free: 14.04 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002902/0.5568, allocations: 1.702 MB / 0.6684 GB, free: 12.25 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003153/0.5571, allocations: 0.7365 MB / 0.6691 GB, free: 11.48 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002168/0.5573, allocations: 71.41 kB / 0.6692 GB, free: 11.41 MB / 490.7 MB Notification: Performance of SimCode: time 3.71e-07/0.5573, allocations: 0 / 0.6692 GB, free: 11.41 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.774/4.331, allocations: 6.387 MB / 0.6754 GB, free: 5.027 MB / 490.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Media_TestOnly_MixIdealGasAir_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Media_TestOnly_MixIdealGasAir.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches