Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.MixtureGases.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00132/0.00132, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001656/0.001656, allocations: 216.1 kB / 24.47 MB, free: 3.777 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.347/1.347, allocations: 207.7 MB / 235.3 MB, free: 9.801 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.MixtureGases,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_MixtureGases",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.MixtureGases,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_MixtureGases",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001908/0.001908, allocations: 55.86 kB / 347.2 MB, free: 9.898 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2298/0.2317, allocations: 49.15 MB / 396.3 MB, free: 8.871 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.1616/0.3933, allocations: 132.8 MB / 0.5167 GB, free: 13.86 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.003782/0.3971, allocations: 2.749 MB / 0.5194 GB, free: 11.11 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001439/0.3973, allocations: 0 / 0.5194 GB, free: 11.11 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004277/0.3977, allocations: 91.48 kB / 0.5195 GB, free: 11.02 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002882/0.4006, allocations: 1.221 MB / 0.5207 GB, free: 9.793 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0011/0.4017, allocations: 394.7 kB / 0.5211 GB, free: 9.406 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006931/0.4024, allocations: 458.8 kB / 0.5215 GB, free: 8.957 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.52e-05/0.4024, allocations: 9.734 kB / 0.5215 GB, free: 8.949 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004956/0.4029, allocations: 232.9 kB / 0.5217 GB, free: 8.723 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003029/0.4032, allocations: 143.5 kB / 0.5219 GB, free: 8.582 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.218e-05/0.4033, allocations: 16 kB / 0.5219 GB, free: 8.566 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003808/0.4071, allocations: 1.838 MB / 0.5237 GB, free: 6.723 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001685/0.4073, allocations: 135.7 kB / 0.5238 GB, free: 6.59 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002137/0.4075, allocations: 143.5 kB / 0.524 GB, free: 6.449 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002369/0.4098, allocations: 1.469 MB / 0.5254 GB, free: 4.977 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.4098, allocations: 0 / 0.5254 GB, free: 4.977 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.4098, allocations: 3.938 kB / 0.5254 GB, free: 4.973 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.746e-06/0.4098, allocations: 0 / 0.5254 GB, free: 4.973 MB / 446.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.002137/0.412, allocations: 0.7075 MB / 0.5261 GB, free: 4.23 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.412, allocations: 11.98 kB / 0.5261 GB, free: 4.219 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.723e-05/0.4121, allocations: 70.72 kB / 0.5262 GB, free: 4.141 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006974/0.4128, allocations: 100.7 kB / 0.5263 GB, free: 4.043 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004842/0.4133, allocations: 237.4 kB / 0.5265 GB, free: 3.785 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.655e-05/0.4133, allocations: 28.58 kB / 0.5265 GB, free: 3.758 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.556e-05/0.4134, allocations: 28 kB / 0.5265 GB, free: 3.73 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00136/0.4148, allocations: 0.8982 MB / 0.5274 GB, free: 2.746 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.705e-05/0.4148, allocations: 4 kB / 0.5274 GB, free: 2.742 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.382e-05/0.4148, allocations: 12 kB / 0.5274 GB, free: 2.73 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.523e-05/0.4149, allocations: 24.42 kB / 0.5275 GB, free: 2.707 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001378/0.4162, allocations: 0.6418 MB / 0.5281 GB, free: 2.066 MB / 446.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.003047/0.4193, allocations: 1.189 MB / 0.5292 GB, free: 0.8281 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001001/0.4203, allocations: 348.8 kB / 0.5296 GB, free: 480 kB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004722/0.4208, allocations: 161.6 kB / 0.5297 GB, free: 312 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002147/0.4229, allocations: 499.5 kB / 0.5302 GB, free: 15.82 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.553e-05/0.423, allocations: 42.69 kB / 0.5303 GB, free: 15.77 MB / 462.1 MB Notification: Performance of pre-optimization done (n=35): time 2.064e-06/0.423, allocations: 4 kB / 0.5303 GB, free: 15.76 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.01522/0.4382, allocations: 3.165 MB / 0.5333 GB, free: 12.46 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.577e-05/0.4382, allocations: 85.05 kB / 0.5334 GB, free: 12.36 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001893/0.4384, allocations: 195.3 kB / 0.5336 GB, free: 12.16 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.325e-05/0.4385, allocations: 33.7 kB / 0.5336 GB, free: 12.12 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001288/0.4386, allocations: 184.6 kB / 0.5338 GB, free: 11.93 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001726/0.4388, allocations: 186.4 kB / 0.534 GB, free: 11.75 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002178/0.439, allocations: 114.3 kB / 0.5341 GB, free: 11.63 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.4392, allocations: 338.8 kB / 0.5344 GB, free: 11.29 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007785/0.4399, allocations: 261.1 kB / 0.5347 GB, free: 11.04 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008938/0.4408, allocations: 421.5 kB / 0.5351 GB, free: 10.56 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001777/0.4426, allocations: 0.7069 MB / 0.5358 GB, free: 9.785 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.492e-06/0.4426, allocations: 4 kB / 0.5358 GB, free: 9.781 MB / 462.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002124/0.4447, allocations: 0.7875 MB / 0.5365 GB, free: 8.98 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.289e-05/0.4448, allocations: 8.156 kB / 0.5366 GB, free: 8.973 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.4448, allocations: 4 kB / 0.5366 GB, free: 8.969 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002222/0.445, allocations: 54.31 kB / 0.5366 GB, free: 8.91 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001222/0.4462, allocations: 191.6 kB / 0.5368 GB, free: 8.723 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007856/0.447, allocations: 1.074 MB / 0.5378 GB, free: 7.598 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007809/0.4478, allocations: 44.14 kB / 0.5379 GB, free: 7.555 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.597e-05/0.4479, allocations: 47.86 kB / 0.5379 GB, free: 7.508 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.0002611/0.4481, allocations: 173.6 kB / 0.5381 GB, free: 7.328 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001281/0.4483, allocations: 31.81 kB / 0.5381 GB, free: 7.297 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002295/0.4506, allocations: 0.7826 MB / 0.5389 GB, free: 6.496 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.939e-06/0.4506, allocations: 8 kB / 0.5389 GB, free: 6.488 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.4506, allocations: 0 / 0.5389 GB, free: 6.488 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.4506, allocations: 7.984 kB / 0.5389 GB, free: 6.48 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00348/0.4541, allocations: 1.453 MB / 0.5403 GB, free: 4.941 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.227e-06/0.4541, allocations: 224 / 0.5403 GB, free: 4.941 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001118/0.4552, allocations: 147.8 kB / 0.5405 GB, free: 4.797 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001326/0.4553, allocations: 45.62 kB / 0.5405 GB, free: 4.746 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.642e-05/0.4554, allocations: 23.97 kB / 0.5405 GB, free: 4.723 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001959/0.4573, allocations: 2.523 MB / 0.543 GB, free: 1.973 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.339e-06/0.4573, allocations: 4.031 kB / 0.543 GB, free: 1.969 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002735/0.4601, allocations: 1.077 MB / 0.5441 GB, free: 0.8477 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.064e-05/0.4601, allocations: 19.86 kB / 0.5441 GB, free: 0.8281 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.5e-05/0.4602, allocations: 16 kB / 0.5441 GB, free: 0.8125 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008061/0.461, allocations: 40 kB / 0.5441 GB, free: 0.7734 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.425e-05/0.4611, allocations: 51.8 kB / 0.5442 GB, free: 0.7227 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.718e-05/0.4612, allocations: 35.97 kB / 0.5442 GB, free: 0.6875 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0001057/0.4613, allocations: 120.4 kB / 0.5443 GB, free: 0.5703 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4613, allocations: 0 / 0.5443 GB, free: 0.5703 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001249/0.4625, allocations: 391.2 kB / 0.5447 GB, free: 192 kB / 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.005379/0.4679, allocations: 2.377 MB / 0.547 GB, free: 13.75 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001979/0.4699, allocations: 0.6364 MB / 0.5476 GB, free: 13.12 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.502e-06/0.4699, allocations: 4 kB / 0.5476 GB, free: 13.12 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001143/0.471, allocations: 0.5254 MB / 0.5482 GB, free: 12.57 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007591/0.4718, allocations: 95.84 kB / 0.5482 GB, free: 12.47 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008543/0.4803, allocations: 4.251 MB / 0.5524 GB, free: 7.949 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002115/0.4806, allocations: 172 kB / 0.5526 GB, free: 7.758 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0008709/0.4814, allocations: 183.1 kB / 0.5527 GB, free: 7.582 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004028/0.4818, allocations: 135.3 kB / 0.5529 GB, free: 7.449 MB / 478.1 MB Notification: Performance of SimCode: time 5.81e-07/0.4818, allocations: 0 / 0.5529 GB, free: 7.449 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.211/0.6928, allocations: 20.74 MB / 0.5731 GB, free: 157.2 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.42/14.11, allocations: 1.062 kB / 0.5731 GB, free: 157.2 MB / 478.1 MB " [Timeout remaining time 646] (rm -f Modelica_3.2.3_Modelica.Media.Examples.MixtureGases.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.MixtureGases.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.MixtureGases.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.MixtureGases.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.MixtureGases_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_MixtureGases_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_MixtureGases.fmu > Modelica_3.2.3_Modelica.Media.Examples.MixtureGases.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.MixtureGases_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/MixtureGases/MixtureGases.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 16.62480631796643]