Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.MixtureGases,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_MixtureGases",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.MixtureGases,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_MixtureGases",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.001483/0.001483, allocations: 113.4 kB / 17.06 MB, free: 5.992 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.001459/0.001459, allocations: 200 kB / 18.01 MB, free: 5.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.351/1.351, allocations: 222.9 MB / 241.7 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0014/0.0014, allocations: 43.92 kB / 350.8 MB, free: 3.781 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2276/0.229, allocations: 49.43 MB / 400.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.3809/0.61, allocations: 152.5 MB / 0.5398 GB, free: 1.719 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.004093/0.6141, allocations: 4.036 MB / 0.5437 GB, free: 1.703 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001395/0.6143, allocations: 5.781 kB / 0.5437 GB, free: 1.703 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003813/0.6147, allocations: 105.2 kB / 0.5438 GB, free: 1.703 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002538/0.6173, allocations: 1.188 MB / 0.545 GB, free: 1.652 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008522/0.6181, allocations: 386.6 kB / 0.5454 GB, free: 1.641 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004848/0.6186, allocations: 458.5 kB / 0.5458 GB, free: 1.641 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.861e-05/0.6187, allocations: 13.06 kB / 0.5458 GB, free: 1.641 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002996/0.619, allocations: 225.1 kB / 0.546 GB, free: 1.641 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000177/0.6192, allocations: 143.1 kB / 0.5462 GB, free: 1.641 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 4.665e-05/0.6192, allocations: 17.34 kB / 0.5462 GB, free: 1.641 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002988/0.6222, allocations: 2.061 MB / 0.5482 GB, free: 1.621 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001103/0.6223, allocations: 133.5 kB / 0.5483 GB, free: 1.621 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001633/0.6225, allocations: 168.7 kB / 0.5485 GB, free: 1.621 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001834/0.6243, allocations: 1.538 MB / 0.55 GB, free: 1.57 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.6244, allocations: 0.8438 kB / 0.55 GB, free: 1.57 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.6244, allocations: 1.203 kB / 0.55 GB, free: 1.57 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.184e-05/0.6244, allocations: 0 / 0.55 GB, free: 1.57 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: 75 * Number of variables: 75 Notification: Performance of Generate backend data structure: time 0.001963/0.6264, allocations: 0.7748 MB / 0.5507 GB, free: 17.09 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.418e-05/0.6264, allocations: 10.53 kB / 0.5507 GB, free: 17.09 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.409e-05/0.6265, allocations: 68.55 kB / 0.5508 GB, free: 17.05 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006556/0.6271, allocations: 113.2 kB / 0.5509 GB, free: 17.03 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003384/0.6275, allocations: 282.5 kB / 0.5512 GB, free: 16.82 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.746e-05/0.6275, allocations: 22.55 kB / 0.5512 GB, free: 16.82 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.078e-05/0.6276, allocations: 27.05 kB / 0.5512 GB, free: 16.82 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009427/0.6285, allocations: 0.5895 MB / 0.5518 GB, free: 16.77 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.683e-05/0.6286, allocations: 2.812 kB / 0.5518 GB, free: 16.77 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.166e-05/0.6286, allocations: 11.81 kB / 0.5518 GB, free: 16.77 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.014e-05/0.6287, allocations: 26.52 kB / 0.5518 GB, free: 16.77 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001116/0.6298, allocations: 0.6369 MB / 0.5525 GB, free: 16.76 MB / 478.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.002499/0.6323, allocations: 1.287 MB / 0.5537 GB, free: 16.34 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008926/0.6332, allocations: 355.7 kB / 0.5541 GB, free: 16.29 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004188/0.6336, allocations: 174.2 kB / 0.5542 GB, free: 16.28 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00233/0.636, allocations: 1.386 MB / 0.5556 GB, free: 15.14 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.853e-05/0.636, allocations: 41 kB / 0.5556 GB, free: 15.1 MB / 478.1 MB Notification: Performance of pre-optimization done (n=35): time 2.675e-06/0.636, allocations: 0.9375 kB / 0.5556 GB, free: 15.1 MB / 478.1 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.01432/0.6503, allocations: 3.49 MB / 0.559 GB, free: 13.98 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.157e-05/0.6504, allocations: 83.92 kB / 0.5591 GB, free: 13.89 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001309/0.6506, allocations: 182.4 kB / 0.5593 GB, free: 13.78 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 5.388e-05/0.6506, allocations: 35.58 kB / 0.5593 GB, free: 13.75 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.53e-05/0.6507, allocations: 178.1 kB / 0.5595 GB, free: 13.6 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001011/0.6508, allocations: 188.5 kB / 0.5597 GB, free: 13.48 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000192/0.651, allocations: 118.9 kB / 0.5598 GB, free: 13.46 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.6512, allocations: 339.6 kB / 0.5601 GB, free: 13.15 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007285/0.6519, allocations: 264.5 kB / 0.5604 GB, free: 13.14 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007647/0.6527, allocations: 426.9 kB / 0.5608 GB, free: 12.97 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001512/0.6542, allocations: 0.6947 MB / 0.5614 GB, free: 12.79 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.6542, allocations: 4.641 kB / 0.5615 GB, free: 12.79 MB / 478.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00187/0.6561, allocations: 0.7794 MB / 0.5622 GB, free: 12.73 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.6561, allocations: 7.75 kB / 0.5622 GB, free: 12.73 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/0.6561, allocations: 5.969 kB / 0.5622 GB, free: 12.73 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000188/0.6563, allocations: 52.39 kB / 0.5623 GB, free: 12.71 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001104/0.6574, allocations: 182.8 kB / 0.5625 GB, free: 12.71 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006971/0.6581, allocations: 1.08 MB / 0.5635 GB, free: 11.67 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007513/0.6589, allocations: 43.86 kB / 0.5635 GB, free: 11.67 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.848e-05/0.659, allocations: 37.36 kB / 0.5636 GB, free: 11.67 MB / 478.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002283/0.6592, allocations: 182.4 kB / 0.5638 GB, free: 11.55 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001125/0.6593, allocations: 26.58 kB / 0.5638 GB, free: 11.54 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002089/0.6614, allocations: 0.7869 MB / 0.5646 GB, free: 11.46 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.171e-06/0.6614, allocations: 6.844 kB / 0.5646 GB, free: 11.46 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.211e-06/0.6615, allocations: 0.625 kB / 0.5646 GB, free: 11.46 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.523e-06/0.6615, allocations: 6.812 kB / 0.5646 GB, free: 11.46 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00305/0.6645, allocations: 1.558 MB / 0.5661 GB, free: 10.86 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.6645, allocations: 4.5 kB / 0.5661 GB, free: 10.86 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001035/0.6656, allocations: 146.2 kB / 0.5662 GB, free: 10.86 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001253/0.6657, allocations: 46.41 kB / 0.5663 GB, free: 10.84 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.886e-05/0.6658, allocations: 23.72 kB / 0.5663 GB, free: 10.84 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001937/0.6677, allocations: 2.74 MB / 0.569 GB, free: 8.145 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.6678, allocations: 2.781 kB / 0.569 GB, free: 8.145 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002508/0.6703, allocations: 1.078 MB / 0.57 GB, free: 7.836 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.074e-05/0.6704, allocations: 98.34 kB / 0.5701 GB, free: 7.73 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.311e-05/0.6705, allocations: 14.22 kB / 0.5701 GB, free: 7.73 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008001/0.6713, allocations: 40.94 kB / 0.5702 GB, free: 7.73 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.259e-05/0.6713, allocations: 44.62 kB / 0.5702 GB, free: 7.727 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.977e-05/0.6714, allocations: 33.89 kB / 0.5702 GB, free: 7.727 MB / 478.1 MB Notification: Performance of sorting global known variables: time 9.345e-05/0.6715, allocations: 123.6 kB / 0.5704 GB, free: 7.652 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6715, allocations: 1.969 kB / 0.5704 GB, free: 7.652 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001322/0.6729, allocations: 394.8 kB / 0.5707 GB, free: 7.602 MB / 478.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005141/0.678, allocations: 2.379 MB / 0.5731 GB, free: 6.699 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001815/0.6798, allocations: 0.6517 MB / 0.5737 GB, free: 6.691 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.688e-06/0.6798, allocations: 3.656 kB / 0.5737 GB, free: 6.691 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001042/0.6809, allocations: 0.5396 MB / 0.5742 GB, free: 6.465 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007454/0.6817, allocations: 107.5 kB / 0.5743 GB, free: 6.445 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00787/0.6895, allocations: 4.243 MB / 0.5785 GB, free: 4.242 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004037/0.69, allocations: 0.7884 MB / 0.5793 GB, free: 3.543 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0008661/0.6908, allocations: 183.1 kB / 0.5794 GB, free: 3.453 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003994/0.6912, allocations: 128.8 kB / 0.5795 GB, free: 3.441 MB / 478.1 MB Notification: Performance of SimCode: time 4.4e-07/0.6913, allocations: 0 / 0.5795 GB, free: 3.441 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05293/0.7442, allocations: 19.64 MB / 0.5987 GB, free: 9.129 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.85/13.6, allocations: 4.062 kB / 0.5987 GB, free: 9.125 MB / 494.1 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.MixtureGases_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_MixtureGases_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_MixtureGases.fmu > Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches