Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Media.Examples.MixtureGases.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) 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(Modelica.Media.Examples.MixtureGases,fileNamePrefix="Modelica_trunk_cpp_Modelica_Media_Examples_MixtureGases",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.MixtureGases,fileNamePrefix="Modelica_trunk_cpp_Modelica_Media_Examples_MixtureGases",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001517/0.001517, allocations: 191.6 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.218/1.218, allocations: 226.5 MB / 244.7 MB, free: 8.199 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007233/0.0007232, allocations: 93.22 kB / 296.7 MB, free: 6.914 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002012/0.0002012, allocations: 8 kB / 356.8 MB, free: 10.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.185/0.1852, allocations: 51.29 MB / 408.1 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.293/0.4782, allocations: 138.4 MB / 0.5338 GB, free: 13.29 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.003269/0.4815, allocations: 3.745 MB / 0.5374 GB, free: 13.04 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.567e-05/0.4816, allocations: 4 kB / 0.5374 GB, free: 13.04 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003641/0.482, allocations: 97.14 kB / 0.5375 GB, free: 13.02 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00196/0.484, allocations: 1.062 MB / 0.5386 GB, free: 12.81 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000791/0.4848, allocations: 341.7 kB / 0.5389 GB, free: 12.76 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005173/0.4853, allocations: 0.5115 MB / 0.5394 GB, free: 12.68 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.47e-05/0.4854, allocations: 12.41 kB / 0.5394 GB, free: 12.68 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002987/0.4857, allocations: 198.9 kB / 0.5396 GB, free: 12.64 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001874/0.4859, allocations: 166.8 kB / 0.5397 GB, free: 12.62 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 3.573e-05/0.4859, allocations: 16.53 kB / 0.5398 GB, free: 12.62 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003532/0.4895, allocations: 2.562 MB / 0.5423 GB, free: 11.98 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001217/0.4896, allocations: 141.6 kB / 0.5424 GB, free: 11.93 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001636/0.4898, allocations: 177.1 kB / 0.5426 GB, free: 11.85 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001437/0.4912, allocations: 1.232 MB / 0.5438 GB, free: 11.34 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.4912, allocations: 1.969 kB / 0.5438 GB, free: 11.34 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.4912, allocations: 0 / 0.5438 GB, free: 11.34 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.4912, allocations: 0 / 0.5438 GB, free: 11.34 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 75 * Number of variables: 75 Notification: Performance of Generate backend data structure: time 0.001701/0.493, allocations: 0.6964 MB / 0.5444 GB, free: 10.79 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.173e-05/0.493, allocations: 11.34 kB / 0.5445 GB, free: 10.79 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.287e-05/0.4931, allocations: 68.05 kB / 0.5445 GB, free: 10.74 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002178/0.4953, allocations: 261.5 kB / 0.5448 GB, free: 10.64 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003296/0.4956, allocations: 290.3 kB / 0.545 GB, free: 10.39 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.622e-05/0.4956, allocations: 20.84 kB / 0.5451 GB, free: 10.39 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.932e-05/0.4957, allocations: 28.98 kB / 0.5451 GB, free: 10.38 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00117/0.4969, allocations: 0.6637 MB / 0.5457 GB, free: 10.17 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.478e-05/0.4969, allocations: 0 / 0.5457 GB, free: 10.17 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.218e-05/0.497, allocations: 13.94 kB / 0.5458 GB, free: 10.17 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.711e-05/0.497, allocations: 25.42 kB / 0.5458 GB, free: 10.16 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001477/0.4985, allocations: 0.7632 MB / 0.5465 GB, free: 10.02 MB / 394.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.003594/0.5021, allocations: 1.815 MB / 0.5483 GB, free: 8.883 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00118/0.5033, allocations: 475.3 kB / 0.5488 GB, free: 8.754 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005619/0.5039, allocations: 228.4 kB / 0.549 GB, free: 8.703 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00218/0.5061, allocations: 1.37 MB / 0.5503 GB, free: 7.438 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.758e-05/0.5061, allocations: 41.22 kB / 0.5503 GB, free: 7.395 MB / 394.7 MB Notification: Performance of pre-optimization done (n=35): time 1.944e-06/0.5061, allocations: 0 / 0.5503 GB, free: 7.395 MB / 394.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: medium1.T Please use -d=bltdump for more information. Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: medium2.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=48): time 0.01317/0.5193, allocations: 3.63 MB / 0.5539 GB, free: 5.695 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.41e-05/0.5193, allocations: 83.3 kB / 0.554 GB, free: 5.602 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000127/0.5195, allocations: 185 kB / 0.5541 GB, free: 5.473 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.399e-05/0.5195, allocations: 34.7 kB / 0.5542 GB, free: 5.441 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.748e-05/0.5196, allocations: 175.9 kB / 0.5543 GB, free: 5.285 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001211/0.5198, allocations: 177.8 kB / 0.5545 GB, free: 5.16 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.954e-05/0.5198, allocations: 10.25 kB / 0.5545 GB, free: 5.16 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.5199, allocations: 334.5 kB / 0.5548 GB, free: 4.84 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006645/0.5206, allocations: 263.9 kB / 0.5551 GB, free: 4.789 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007477/0.5214, allocations: 427.2 kB / 0.5555 GB, free: 4.543 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001636/0.523, allocations: 0.6952 MB / 0.5562 GB, free: 4.266 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-06/0.523, allocations: 6.875 kB / 0.5562 GB, free: 4.262 MB / 394.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00173/0.5248, allocations: 0.773 MB / 0.5569 GB, free: 4.062 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/0.5248, allocations: 11.86 kB / 0.557 GB, free: 4.059 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.884e-06/0.5248, allocations: 5.188 kB / 0.557 GB, free: 4.059 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001826/0.525, allocations: 56.38 kB / 0.557 GB, free: 4.035 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001088/0.5261, allocations: 188.9 kB / 0.5572 GB, free: 3.98 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005922/0.5267, allocations: 1.071 MB / 0.5582 GB, free: 2.93 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009123/0.5276, allocations: 51.77 kB / 0.5583 GB, free: 2.91 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.334e-05/0.5277, allocations: 45.72 kB / 0.5583 GB, free: 2.898 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (70): * Single equations (assignments): 68 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002131/0.5279, allocations: 171 kB / 0.5585 GB, free: 2.77 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.46e-05/0.528, allocations: 25.47 kB / 0.5585 GB, free: 2.758 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002021/0.53, allocations: 0.7917 MB / 0.5593 GB, free: 2.484 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.5301, allocations: 5.844 kB / 0.5593 GB, free: 2.484 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.5301, allocations: 6.781 kB / 0.5593 GB, free: 2.48 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.5301, allocations: 0 / 0.5593 GB, free: 2.48 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00313/0.5332, allocations: 1.56 MB / 0.5608 GB, free: 1.605 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.5332, allocations: 2.906 kB / 0.5608 GB, free: 1.605 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001034/0.5343, allocations: 144.5 kB / 0.561 GB, free: 1.562 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001307/0.5344, allocations: 50.5 kB / 0.561 GB, free: 1.531 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.948e-05/0.5345, allocations: 28.38 kB / 0.561 GB, free: 1.52 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001587/0.5361, allocations: 2.524 MB / 0.5635 GB, free: 14.96 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/0.5361, allocations: 3.938 kB / 0.5635 GB, free: 14.96 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002351/0.5385, allocations: 1.08 MB / 0.5646 GB, free: 14.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.592e-05/0.5386, allocations: 100.9 kB / 0.5647 GB, free: 14.39 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.997e-05/0.5386, allocations: 15.38 kB / 0.5647 GB, free: 14.38 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007635/0.5394, allocations: 42.3 kB / 0.5647 GB, free: 14.37 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.577e-05/0.5395, allocations: 38.27 kB / 0.5648 GB, free: 14.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.9e-05/0.5396, allocations: 45.44 kB / 0.5648 GB, free: 14.34 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.469e-05/0.5396, allocations: 122.3 kB / 0.5649 GB, free: 14.25 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5397, allocations: 0 / 0.5649 GB, free: 14.25 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001418/0.5411, allocations: 413.2 kB / 0.5653 GB, free: 14.2 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 4 (medium2.p,medium2.T,medium1.p,medium1.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 (48): * Single equations (assignments): 46 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004931/0.546, allocations: 2.371 MB / 0.5676 GB, free: 12.89 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001682/0.5477, allocations: 0.6537 MB / 0.5683 GB, free: 12.74 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.5477, allocations: 0 / 0.5683 GB, free: 12.74 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009407/0.5487, allocations: 0.5322 MB / 0.5688 GB, free: 12.44 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007224/0.5494, allocations: 104.3 kB / 0.5689 GB, free: 12.41 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004934/0.5544, allocations: 2.666 MB / 0.5715 GB, free: 10.89 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003231/0.5547, allocations: 0.7819 MB / 0.5723 GB, free: 10.15 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004751/0.5552, allocations: 142.4 kB / 0.5724 GB, free: 10.11 MB / 410.7 MB Notification: Performance of SimCode: time 6.41e-07/0.5552, allocations: 0 / 0.5724 GB, free: 10.11 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.702/6.257, allocations: 13.99 MB / 0.586 GB, free: 12.21 MB / 426.7 MB (rm -f Modelica_trunk_cpp_Modelica.Media.Examples.MixtureGases.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Media.Examples.MixtureGases.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Media.Examples.MixtureGases.pipe >> ../files/Modelica_trunk_cpp_Modelica.Media.Examples.MixtureGases.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Media.Examples.MixtureGases_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Media_Examples_MixtureGases_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Media_Examples_MixtureGases.fmu > Modelica_trunk_cpp_Modelica.Media.Examples.MixtureGases.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Media.Examples.MixtureGases_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/MixtureGases/MixtureGases.csv","../files/Modelica_trunk_cpp_Modelica.Media.Examples.MixtureGases.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches