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.001326/0.001326, allocations: 72.08 kB / 21.69 MB, free: 2.859 MB / 18.57 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.001221/0.001221, allocations: 145.1 kB / 24.97 MB, free: 8.371 MB / 18.57 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 0.8992/0.8992, allocations: 173.3 MB / 201.5 MB, free: 9.355 MB / 186.7 MB " [Timeout remaining time 179] 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 1.463e-06/1.463e-06, allocations: 0 / 268 MB, free: 6.781 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.432e-05/2.578e-05, allocations: 6.25 kB / 268 MB, free: 6.773 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.2201/0.2201, allocations: 145.3 MB / 413.3 MB, free: 8.512 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.00305/0.2232, allocations: 4.065 MB / 417.4 MB, free: 4.449 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001025/0.2233, allocations: 3.938 kB / 417.4 MB, free: 4.445 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003741/0.2236, allocations: 87.44 kB / 417.5 MB, free: 4.359 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001886/0.2255, allocations: 1.248 MB / 418.8 MB, free: 3.105 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006403/0.2262, allocations: 398.5 kB / 419.1 MB, free: 2.715 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004415/0.2266, allocations: 466.7 kB / 419.6 MB, free: 2.258 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.475e-05/0.2267, allocations: 9.812 kB / 419.6 MB, free: 2.242 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003525/0.227, allocations: 283 kB / 419.9 MB, free: 1.965 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001689/0.2272, allocations: 135.6 kB / 420 MB, free: 1.832 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 2.943e-05/0.2272, allocations: 16 kB / 420 MB, free: 1.816 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002378/0.2296, allocations: 1.85 MB / 421.9 MB, free: 15.96 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00011/0.2297, allocations: 151.6 kB / 422 MB, free: 15.81 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001122/0.2298, allocations: 123.8 kB / 422.1 MB, free: 15.69 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001606/0.2314, allocations: 1.535 MB / 423.7 MB, free: 14.15 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.2314, allocations: 0 / 423.7 MB, free: 14.15 MB / 378.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.2314, allocations: 0 / 423.7 MB, free: 14.15 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.6e-06/0.2314, allocations: 4 kB / 423.7 MB, free: 14.15 MB / 378.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.001246/0.2327, allocations: 0.7844 MB / 424.5 MB, free: 13.33 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/0.2327, allocations: 12.92 kB / 424.5 MB, free: 13.32 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000534/0.2332, allocations: 156.5 kB / 424.6 MB, free: 13.16 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002662/0.2335, allocations: 224.4 kB / 424.9 MB, free: 12.92 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.805e-05/0.2335, allocations: 20.59 kB / 424.9 MB, free: 12.9 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.781e-05/0.2336, allocations: 32 kB / 424.9 MB, free: 12.87 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005865/0.2342, allocations: 0.7101 MB / 425.6 MB, free: 12.07 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.356e-05/0.2342, allocations: 0 / 425.6 MB, free: 12.07 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.957e-05/0.2342, allocations: 12 kB / 425.6 MB, free: 12.05 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.958e-05/0.2342, allocations: 24.48 kB / 425.7 MB, free: 12.03 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003614/0.2346, allocations: 281.6 kB / 425.9 MB, free: 11.76 MB / 378.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.001489/0.2361, allocations: 1.111 MB / 427 MB, free: 10.6 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004598/0.2366, allocations: 280.5 kB / 427.3 MB, free: 10.3 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001461/0.2367, allocations: 118.8 kB / 427.4 MB, free: 10.18 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009821/0.2377, allocations: 499.3 kB / 427.9 MB, free: 9.695 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.52e-05/0.2377, allocations: 37.61 kB / 428 MB, free: 9.648 MB / 378.7 MB Notification: Performance of pre-optimization done (n=35): time 1.483e-06/0.2377, allocations: 0 / 428 MB, free: 9.648 MB / 378.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.006321/0.244, allocations: 2.654 MB / 430.6 MB, free: 6.855 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.362e-05/0.2441, allocations: 85.11 kB / 430.7 MB, free: 6.754 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001213/0.2442, allocations: 246.4 kB / 430.9 MB, free: 6.496 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.254e-05/0.2442, allocations: 37.7 kB / 431 MB, free: 6.453 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.551e-05/0.2443, allocations: 227.3 kB / 431.2 MB, free: 6.223 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001128/0.2444, allocations: 182.4 kB / 431.4 MB, free: 6.043 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001374/0.2446, allocations: 127.9 kB / 431.5 MB, free: 5.91 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.2447, allocations: 0.5157 MB / 432 MB, free: 5.383 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002431/0.2449, allocations: 173.2 kB / 432.2 MB, free: 5.215 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003278/0.2453, allocations: 407.8 kB / 432.6 MB, free: 4.723 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005908/0.2458, allocations: 0.5844 MB / 433.2 MB, free: 4.047 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.2458, allocations: 0 / 433.2 MB, free: 4.047 MB / 378.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0007994/0.2466, allocations: 0.6386 MB / 433.8 MB, free: 3.395 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.2467, allocations: 8 kB / 433.8 MB, free: 3.387 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.2467, allocations: 4.938 kB / 433.8 MB, free: 3.383 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001403/0.2468, allocations: 63.91 kB / 433.9 MB, free: 3.312 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00051/0.2473, allocations: 171.8 kB / 434 MB, free: 3.145 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006151/0.2479, allocations: 1.596 MB / 435.6 MB, free: 1.484 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003077/0.2482, allocations: 31.98 kB / 435.7 MB, free: 1.453 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.904e-05/0.2483, allocations: 39.97 kB / 435.7 MB, free: 1.414 MB / 378.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 (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.0001507/0.2484, allocations: 196.5 kB / 435.9 MB, free: 1.211 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001086/0.2485, allocations: 47.8 kB / 435.9 MB, free: 1.164 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008951/0.2494, allocations: 0.6503 MB / 436.6 MB, free: 0.5039 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.2494, allocations: 8 kB / 436.6 MB, free: 0.4961 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.2495, allocations: 3.5 kB / 436.6 MB, free: 0.4961 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.2495, allocations: 7.875 kB / 436.6 MB, free: 500 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1376/0.3871, allocations: 1.357 MB / 438 MB, free: 16.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.451e-06/0.3871, allocations: 3.219 kB / 438 MB, free: 16.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005325/0.3876, allocations: 137.8 kB / 438.1 MB, free: 16.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001248/0.3877, allocations: 47.12 kB / 438.2 MB, free: 16 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.945e-05/0.3878, allocations: 24.77 kB / 438.2 MB, free: 16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008897/0.3887, allocations: 3.446 MB / 441.6 MB, free: 12.58 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.3887, allocations: 6 kB / 441.6 MB, free: 12.58 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001215/0.3899, allocations: 1.029 MB / 442.7 MB, free: 12.15 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.038e-05/0.3899, allocations: 23.69 kB / 442.7 MB, free: 12.15 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.548e-05/0.39, allocations: 12.97 kB / 442.7 MB, free: 12.15 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003612/0.3903, allocations: 31.33 kB / 442.7 MB, free: 12.15 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.893e-05/0.3904, allocations: 51.08 kB / 442.8 MB, free: 12.15 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.804e-05/0.3905, allocations: 33.95 kB / 442.8 MB, free: 12.15 MB / 378.7 MB Notification: Performance of sorting global known variables: time 6.078e-05/0.3905, allocations: 153.3 kB / 443 MB, free: 12.03 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3905, allocations: 0 / 443 MB, free: 12.03 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001092/0.3916, allocations: 392.3 kB / 443.3 MB, free: 12.03 MB / 378.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 (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.001944/0.3936, allocations: 0.8853 MB / 444.2 MB, free: 11.93 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009734/0.3945, allocations: 0.5282 MB / 444.8 MB, free: 11.91 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3945, allocations: 0 / 444.8 MB, free: 11.91 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004894/0.395, allocations: 0.6025 MB / 445.4 MB, free: 11.57 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005208/0.3956, allocations: 118.8 kB / 445.5 MB, free: 11.57 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001431/0.397, allocations: 0.7993 MB / 446.3 MB, free: 11.18 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.572e-05/0.3971, allocations: 111.5 kB / 446.4 MB, free: 11.11 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005955/0.3977, allocations: 185.4 kB / 446.6 MB, free: 11.09 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002417/0.3979, allocations: 64.61 kB / 446.6 MB, free: 11.08 MB / 378.7 MB Notification: Performance of SimCode: time 1.232e-06/0.3979, allocations: 0.9375 kB / 446.6 MB, free: 11.08 MB / 378.7 MB Notification: Performance of Templates: time 0.01728/0.4152, allocations: 16.52 MB / 463.2 MB, free: 9.957 MB / 378.7 MB " [Timeout remaining time 660] 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.596293058944866]