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.0009136/0.0009136, allocations: 82.28 kB / 22.21 MB, free: 2.293 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.0008316/0.0008316, allocations: 134.6 kB / 25.59 MB, free: 8.906 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.8609/0.8609, allocations: 173.4 MB / 202.3 MB, free: 7.898 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.042e-06/1.042e-06, allocations: 0 / 269.2 MB, free: 9.773 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.757e-05/1.862e-05, allocations: 10.25 kB / 269.2 MB, free: 9.762 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.2366/0.2366, allocations: 142.8 MB / 412 MB, free: 9.871 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003353/0.2399, allocations: 4.015 MB / 416 MB, free: 5.859 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001342/0.2401, allocations: 7.875 kB / 416 MB, free: 5.852 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003985/0.2405, allocations: 95.42 kB / 416.1 MB, free: 5.758 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002544/0.243, allocations: 1.244 MB / 417.4 MB, free: 4.508 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007521/0.2438, allocations: 394.5 kB / 417.8 MB, free: 4.121 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004909/0.2442, allocations: 466.7 kB / 418.2 MB, free: 3.664 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.736e-05/0.2443, allocations: 9.797 kB / 418.2 MB, free: 3.648 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003726/0.2447, allocations: 287.1 kB / 418.5 MB, free: 3.367 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000183/0.2448, allocations: 127.7 kB / 418.6 MB, free: 3.242 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 3.358e-05/0.2449, allocations: 19.98 kB / 418.6 MB, free: 3.223 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002723/0.2476, allocations: 1.858 MB / 420.5 MB, free: 1.359 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001182/0.2477, allocations: 147.7 kB / 420.6 MB, free: 1.215 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001241/0.2478, allocations: 127.8 kB / 420.8 MB, free: 1.09 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002069/0.2499, allocations: 1.535 MB / 422.3 MB, free: 15.55 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.2499, allocations: 4 kB / 422.3 MB, free: 15.55 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.452e-06/0.2499, allocations: 0 / 422.3 MB, free: 15.55 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.061e-06/0.2499, allocations: 0 / 422.3 MB, free: 15.55 MB / 346.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.001381/0.2513, allocations: 0.7844 MB / 423.1 MB, free: 14.73 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.2513, allocations: 12.62 kB / 423.1 MB, free: 14.71 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005141/0.2519, allocations: 152.4 kB / 423.3 MB, free: 14.57 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002873/0.2521, allocations: 212.4 kB / 423.5 MB, free: 14.33 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.812e-05/0.2522, allocations: 24.59 kB / 423.5 MB, free: 14.31 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.868e-05/0.2522, allocations: 35.98 kB / 423.5 MB, free: 14.27 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007558/0.253, allocations: 0.667 MB / 424.2 MB, free: 13.52 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.562e-05/0.253, allocations: 8 kB / 424.2 MB, free: 13.51 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.092e-05/0.253, allocations: 16 kB / 424.2 MB, free: 13.5 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.767e-05/0.2531, allocations: 20.48 kB / 424.2 MB, free: 13.48 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002597/0.2533, allocations: 219.3 kB / 424.4 MB, free: 13.27 MB / 346.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.001463/0.2548, allocations: 1.08 MB / 425.5 MB, free: 12.15 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002845/0.2551, allocations: 250 kB / 425.8 MB, free: 11.88 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001105/0.2552, allocations: 107.3 kB / 425.9 MB, free: 11.77 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001001/0.2562, allocations: 487.3 kB / 426.4 MB, free: 11.29 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.619e-05/0.2562, allocations: 41.39 kB / 426.4 MB, free: 11.24 MB / 346.7 MB Notification: Performance of pre-optimization done (n=35): time 1.894e-06/0.2562, allocations: 0 / 426.4 MB, free: 11.24 MB / 346.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.005722/0.2619, allocations: 2.386 MB / 428.8 MB, free: 8.723 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.253e-05/0.262, allocations: 81.11 kB / 428.9 MB, free: 8.625 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001116/0.2621, allocations: 248.2 kB / 429.1 MB, free: 8.367 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.089e-05/0.2621, allocations: 33.7 kB / 429.1 MB, free: 8.328 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.52e-05/0.2622, allocations: 231.3 kB / 429.4 MB, free: 8.094 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001081/0.2623, allocations: 182.4 kB / 429.5 MB, free: 7.914 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001485/0.2625, allocations: 131.9 kB / 429.7 MB, free: 7.777 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.2626, allocations: 0.5118 MB / 430.2 MB, free: 7.254 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001646/0.2627, allocations: 133.2 kB / 430.3 MB, free: 7.125 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002598/0.263, allocations: 371.7 kB / 430.7 MB, free: 6.668 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007125/0.2637, allocations: 0.53 MB / 431.2 MB, free: 6.051 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.2637, allocations: 0 / 431.2 MB, free: 6.051 MB / 346.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0006826/0.2644, allocations: 0.5647 MB / 431.8 MB, free: 5.473 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.2644, allocations: 8 kB / 431.8 MB, free: 5.465 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.2644, allocations: 7.938 kB / 431.8 MB, free: 5.457 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001167/0.2645, allocations: 58.84 kB / 431.8 MB, free: 5.395 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005378/0.2651, allocations: 167.8 kB / 432 MB, free: 5.23 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000523/0.2656, allocations: 1.6 MB / 433.6 MB, free: 3.566 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003418/0.2659, allocations: 31.97 kB / 433.6 MB, free: 3.535 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.753e-05/0.266, allocations: 31.98 kB / 433.7 MB, free: 3.504 MB / 346.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.0001651/0.2662, allocations: 196.5 kB / 433.9 MB, free: 3.301 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001067/0.2663, allocations: 47.8 kB / 433.9 MB, free: 3.254 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007821/0.267, allocations: 0.5733 MB / 434.5 MB, free: 2.668 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.177e-06/0.267, allocations: 4 kB / 434.5 MB, free: 2.664 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.2671, allocations: 0 / 434.5 MB, free: 2.664 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.633e-06/0.2671, allocations: 7.984 kB / 434.5 MB, free: 2.656 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001371/0.2684, allocations: 1.277 MB / 435.8 MB, free: 1.301 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.2684, allocations: 4 kB / 435.8 MB, free: 1.297 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004821/0.2689, allocations: 136 kB / 435.9 MB, free: 1.164 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.866e-05/0.269, allocations: 43.34 kB / 435.9 MB, free: 1.113 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.153e-05/0.2691, allocations: 27.97 kB / 436 MB, free: 1.086 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001492/0.2705, allocations: 3.407 MB / 439.4 MB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.2706, allocations: 7.984 kB / 439.4 MB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009351/0.2715, allocations: 0.9557 MB / 440.3 MB, free: 12.43 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.715e-05/0.2715, allocations: 23.81 kB / 440.4 MB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.408e-05/0.2716, allocations: 16 kB / 440.4 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003559/0.2719, allocations: 23.97 kB / 440.4 MB, free: 12.37 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.285e-05/0.272, allocations: 51.8 kB / 440.5 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.875e-05/0.272, allocations: 39.95 kB / 440.5 MB, free: 12.28 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.899e-05/0.2721, allocations: 148.3 kB / 440.6 MB, free: 12.13 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-08/0.2721, allocations: 0 / 440.6 MB, free: 12.13 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001097/0.2732, allocations: 395.2 kB / 441 MB, free: 11.75 MB / 362.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.0016/0.2748, allocations: 0.8921 MB / 441.9 MB, free: 10.84 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006455/0.2754, allocations: 459.8 kB / 442.4 MB, free: 10.39 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.2754, allocations: 1.25 kB / 442.4 MB, free: 10.39 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004174/0.2759, allocations: 0.5668 MB / 442.9 MB, free: 9.789 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004861/0.2763, allocations: 128.3 kB / 443.1 MB, free: 9.668 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001191/0.2775, allocations: 0.7997 MB / 443.9 MB, free: 8.801 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.52e-05/0.2776, allocations: 114.3 kB / 444 MB, free: 8.672 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0004878/0.2781, allocations: 159.1 kB / 444.1 MB, free: 8.52 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004165/0.2785, allocations: 210 kB / 444.3 MB, free: 8.312 MB / 362.7 MB Notification: Performance of SimCode: time 8.12e-07/0.2785, allocations: 0 / 444.3 MB, free: 8.312 MB / 362.7 MB Notification: Performance of Templates: time 0.02124/0.2998, allocations: 20.11 MB / 464.4 MB, free: 4.301 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.5061200340278447]