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) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001365/0.001365, allocations: 109.5 kB / 20.43 MB, free: 1.449 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001359/0.001359, allocations: 189.7 kB / 23.72 MB, free: 4.68 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 225.6 MB / 252.5 MB, free: 12.99 MB / 206.1 MB
"
[Timeout remaining time 178]
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: translateModel(Modelica.Media.Examples.MixtureGases,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|medium1.T|medium1.p|medium2.T|medium2.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.MixtureGases")
translateModel(Modelica.Media.Examples.MixtureGases,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|medium1.T|medium1.p|medium2.T|medium2.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.MixtureGases") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001534/0.001534, allocations: 47.92 kB / 370.9 MB, free: 9.34 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2382/0.2397, allocations: 52.18 MB / 423.1 MB, free: 14.62 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.407/0.6468, allocations: 153 MB / 0.5626 GB, free: 13.54 MB / 462.1 MB
Notification: Performance of NFInst.instExpressions: time 0.003735/0.6505, allocations: 4.063 MB / 0.5666 GB, free: 13.25 MB / 462.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001474/0.6506, allocations: 0 / 0.5666 GB, free: 13.25 MB / 462.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0004673/0.6511, allocations: 106.1 kB / 0.5667 GB, free: 13.22 MB / 462.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.003011/0.6541, allocations: 1.255 MB / 0.5679 GB, free: 12.96 MB / 462.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.001103/0.6552, allocations: 395.1 kB / 0.5683 GB, free: 12.9 MB / 462.1 MB
Notification: Performance of NFFlatten.flatten: time 0.000634/0.6559, allocations: 464 kB / 0.5687 GB, free: 12.82 MB / 462.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 6.236e-05/0.6559, allocations: 6.906 kB / 0.5688 GB, free: 12.82 MB / 462.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0004104/0.6563, allocations: 235.1 kB / 0.569 GB, free: 12.79 MB / 462.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002088/0.6565, allocations: 151.5 kB / 0.5691 GB, free: 12.78 MB / 462.1 MB
Notification: Performance of NFPackage.collectConstants: time 4.855e-05/0.6566, allocations: 21.28 kB / 0.5691 GB, free: 12.77 MB / 462.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.004138/0.6607, allocations: 2.258 MB / 0.5713 GB, free: 12.53 MB / 462.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001497/0.6609, allocations: 143.1 kB / 0.5715 GB, free: 12.52 MB / 462.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001966/0.6611, allocations: 167.6 kB / 0.5716 GB, free: 12.52 MB / 462.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.002372/0.6634, allocations: 1.548 MB / 0.5732 GB, free: 12.43 MB / 462.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.6635, allocations: 4 kB / 0.5732 GB, free: 12.42 MB / 462.1 MB
Notification: Performance of FrontEnd: time 1.173e-06/0.6635, allocations: 0 / 0.5732 GB, free: 12.42 MB / 462.1 MB
Notification: Performance of Transformations before backend: time 1.297e-05/0.6635, allocations: 0 / 0.5732 GB, free: 12.42 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.002198/0.6657, allocations: 0.7029 MB / 0.5738 GB, free: 12.03 MB / 462.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.6657, allocations: 11.69 kB / 0.5739 GB, free: 12.03 MB / 462.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008168/0.6665, allocations: 112.9 kB / 0.574 GB, free: 12.01 MB / 462.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004827/0.667, allocations: 223.5 kB / 0.5742 GB, free: 11.86 MB / 462.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.108e-05/0.667, allocations: 18.09 kB / 0.5742 GB, free: 11.86 MB / 462.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 7.608e-05/0.6671, allocations: 35.36 kB / 0.5742 GB, free: 11.86 MB / 462.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001082/0.6682, allocations: 0.5906 MB / 0.5748 GB, free: 11.8 MB / 462.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 2.116e-05/0.6682, allocations: 7.75 kB / 0.5748 GB, free: 11.8 MB / 462.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.968e-05/0.6683, allocations: 9.344 kB / 0.5748 GB, free: 11.8 MB / 462.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.045e-05/0.6683, allocations: 22.94 kB / 0.5748 GB, free: 11.8 MB / 462.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001206/0.6695, allocations: 0.6437 MB / 0.5755 GB, free: 11.77 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.00314/0.6726, allocations: 1.246 MB / 0.5767 GB, free: 11.15 MB / 462.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.001005/0.6736, allocations: 341.9 kB / 0.577 GB, free: 11.05 MB / 462.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0004799/0.6741, allocations: 175.6 kB / 0.5772 GB, free: 10.99 MB / 462.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.002228/0.6763, allocations: 0.4962 MB / 0.5777 GB, free: 10.86 MB / 462.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.265e-05/0.6764, allocations: 44.94 kB / 0.5777 GB, free: 10.82 MB / 462.1 MB
Notification: Performance of pre-optimization done (n=35): time 2.384e-06/0.6764, allocations: 2.188 kB / 0.5777 GB, free: 10.82 MB / 462.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.01603/0.6924, allocations: 3.181 MB / 0.5808 GB, free: 9.461 MB / 462.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.185e-05/0.6925, allocations: 81.8 kB / 0.5809 GB, free: 9.367 MB / 462.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001671/0.6927, allocations: 182.4 kB / 0.5811 GB, free: 9.242 MB / 462.1 MB
Notification: Performance of collectPreVariables (initialization): time 7.191e-05/0.6927, allocations: 38.92 kB / 0.5811 GB, free: 9.207 MB / 462.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001247/0.6929, allocations: 182.2 kB / 0.5813 GB, free: 9.047 MB / 462.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001702/0.693, allocations: 183.8 kB / 0.5815 GB, free: 8.914 MB / 462.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002126/0.6932, allocations: 117.5 kB / 0.5816 GB, free: 8.879 MB / 462.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001501/0.6934, allocations: 334.1 kB / 0.5819 GB, free: 8.559 MB / 462.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.000754/0.6941, allocations: 267.6 kB / 0.5821 GB, free: 8.508 MB / 462.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.000902/0.695, allocations: 424.5 kB / 0.5825 GB, free: 8.266 MB / 462.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.00163/0.6967, allocations: 0.6987 MB / 0.5832 GB, free: 7.988 MB / 462.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.065e-06/0.6967, allocations: 2.125 kB / 0.5832 GB, free: 7.988 MB / 462.1 MB
Notification: Performance of matching and sorting (n=72) (initialization): time 0.002045/0.6987, allocations: 0.7804 MB / 0.584 GB, free: 7.785 MB / 462.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.6987, allocations: 4.938 kB / 0.584 GB, free: 7.785 MB / 462.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.6987, allocations: 5.281 kB / 0.584 GB, free: 7.785 MB / 462.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0002137/0.699, allocations: 59.66 kB / 0.5841 GB, free: 7.758 MB / 462.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001216/0.7002, allocations: 177.9 kB / 0.5842 GB, free: 7.711 MB / 462.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008147/0.701, allocations: 1.084 MB / 0.5853 GB, free: 6.652 MB / 462.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008323/0.7018, allocations: 42.45 kB / 0.5853 GB, free: 6.641 MB / 462.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.86e-05/0.7019, allocations: 39.17 kB / 0.5854 GB, free: 6.633 MB / 462.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.0003046/0.7022, allocations: 180.8 kB / 0.5855 GB, free: 6.496 MB / 462.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001353/0.7023, allocations: 30.31 kB / 0.5856 GB, free: 6.48 MB / 462.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00228/0.7046, allocations: 0.7759 MB / 0.5863 GB, free: 6.223 MB / 462.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.7046, allocations: 7.656 kB / 0.5863 GB, free: 6.223 MB / 462.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.82e-06/0.7046, allocations: 0 / 0.5863 GB, free: 6.223 MB / 462.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.397e-06/0.7046, allocations: 3.984 kB / 0.5863 GB, free: 6.219 MB / 462.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003397/0.708, allocations: 1.541 MB / 0.5878 GB, free: 5.371 MB / 462.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.723e-06/0.708, allocations: 6.219 kB / 0.5878 GB, free: 5.367 MB / 462.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001154/0.7092, allocations: 146.5 kB / 0.588 GB, free: 5.324 MB / 462.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0001333/0.7093, allocations: 46.12 kB / 0.588 GB, free: 5.297 MB / 462.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.536e-05/0.7094, allocations: 33.34 kB / 0.5881 GB, free: 5.281 MB / 462.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002032/0.7114, allocations: 2.518 MB / 0.5905 GB, free: 2.781 MB / 462.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.7114, allocations: 4.594 kB / 0.5905 GB, free: 2.781 MB / 462.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00266/0.7141, allocations: 1.067 MB / 0.5916 GB, free: 2.32 MB / 462.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 6.119e-05/0.7142, allocations: 33.22 kB / 0.5916 GB, free: 2.301 MB / 462.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.648e-05/0.7142, allocations: 12.89 kB / 0.5916 GB, free: 2.301 MB / 462.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008921/0.7151, allocations: 39.48 kB / 0.5917 GB, free: 2.289 MB / 462.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 7.367e-05/0.7152, allocations: 49.83 kB / 0.5917 GB, free: 2.258 MB / 462.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.721e-05/0.7153, allocations: 34.53 kB / 0.5917 GB, free: 2.25 MB / 462.1 MB
Notification: Performance of sorting global known variables: time 0.000102/0.7154, allocations: 126.1 kB / 0.5919 GB, free: 2.164 MB / 462.1 MB
Notification: Performance of sort global known variables: time 1e-07/0.7154, allocations: 0 / 0.5919 GB, free: 2.164 MB / 462.1 MB
Notification: Performance of remove unused functions: time 0.001492/0.7169, allocations: 393.1 kB / 0.5922 GB, free: 2.105 MB / 462.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.002302/0.7192, allocations: 0.8616 MB / 0.5931 GB, free: 1.699 MB / 462.1 MB
Notification: Performance of simCode: created initialization part: time 0.001908/0.7211, allocations: 0.6357 MB / 0.5937 GB, free: 1.559 MB / 462.1 MB
Notification: Performance of simCode: created event and clocks part: time 7.333e-06/0.7211, allocations: 3.062 kB / 0.5937 GB, free: 1.559 MB / 462.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.001118/0.7222, allocations: 0.5218 MB / 0.5942 GB, free: 1.262 MB / 462.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007702/0.723, allocations: 104.7 kB / 0.5943 GB, free: 1.223 MB / 462.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002033/0.725, allocations: 1.009 MB / 0.5953 GB, free: 0.5938 MB / 462.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004191/0.7254, allocations: 0.7878 MB / 0.5961 GB, free: 15.86 MB / 478.1 MB
Notification: Performance of simCode: alias equations: time 0.0008299/0.7263, allocations: 184.6 kB / 0.5962 GB, free: 15.75 MB / 478.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003325/0.7266, allocations: 62.83 kB / 0.5963 GB, free: 15.72 MB / 478.1 MB
Notification: Performance of SimCode: time 4.81e-07/0.7266, allocations: 0 / 0.5963 GB, free: 15.72 MB / 478.1 MB
Notification: Performance of Templates: time 0.02607/0.7527, allocations: 16.63 MB / 0.6125 GB, free: 1.086 MB / 478.1 MB
"
[Timeout remaining time 659]
make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.makefile [Timeout 660]
(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 & ./Modelica_4.0.0_Modelica.Media.Examples.MixtureGases  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.MixtureGases_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/MixtureGases/MixtureGases.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660]
""
[Timeout remaining time 660]
Reference file matches
[Calling sys.exit(0), Time elapsed: 5.707890912890434]