Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0009173/0.0009173, allocations: 71.77 kB / 21.69 MB, free: 2.855 MB / 18.57 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.0009628/0.0009628, allocations: 169 kB / 24.99 MB, free: 8.227 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9624/0.9624, allocations: 177.1 MB / 205.3 MB, free: 5.211 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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: 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.1.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.1.0_Modelica.Media.Examples.MixtureGases") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.432e-06/1.432e-06, allocations: 0 / 273 MB, free: 1.688 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.081e-05/2.224e-05, allocations: 5.266 kB / 273 MB, free: 1.684 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.2157/0.2157, allocations: 148.2 MB / 421.2 MB, free: 13.77 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003094/0.2188, allocations: 4.058 MB / 425.3 MB, free: 9.715 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001085/0.2189, allocations: 0 / 425.3 MB, free: 9.715 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000396/0.2193, allocations: 103.3 kB / 425.4 MB, free: 9.613 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00231/0.2216, allocations: 1.236 MB / 426.6 MB, free: 8.371 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007019/0.2223, allocations: 402.5 kB / 427 MB, free: 7.977 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004902/0.2228, allocations: 466.7 kB / 427.5 MB, free: 7.52 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.299e-05/0.2229, allocations: 6.344 kB / 427.5 MB, free: 7.512 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000414/0.2233, allocations: 307 kB / 427.8 MB, free: 7.211 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001635/0.2235, allocations: 131.6 kB / 427.9 MB, free: 7.082 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.96e-05/0.2235, allocations: 16 kB / 427.9 MB, free: 7.066 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002383/0.2259, allocations: 1.857 MB / 429.8 MB, free: 5.203 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001118/0.226, allocations: 147.7 kB / 429.9 MB, free: 5.059 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00012/0.2261, allocations: 135.7 kB / 430.1 MB, free: 4.926 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001717/0.2278, allocations: 1.543 MB / 431.6 MB, free: 3.379 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.2278, allocations: 0 / 431.6 MB, free: 3.379 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2278, allocations: 0 / 431.6 MB, free: 3.379 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.2278, allocations: 7.938 kB / 431.6 MB, free: 3.371 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.001281/0.2291, allocations: 0.7773 MB / 432.4 MB, free: 2.559 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.468e-05/0.2292, allocations: 8.031 kB / 432.4 MB, free: 2.551 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005467/0.2297, allocations: 164.4 kB / 432.6 MB, free: 2.391 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002849/0.23, allocations: 229 kB / 432.8 MB, free: 2.141 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.932e-05/0.23, allocations: 24.59 kB / 432.8 MB, free: 2.117 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.991e-05/0.2301, allocations: 28 kB / 432.8 MB, free: 2.09 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000831/0.2309, allocations: 0.7131 MB / 433.5 MB, free: 1.285 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/0.2309, allocations: 0 / 433.5 MB, free: 1.285 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.191e-05/0.2309, allocations: 12 kB / 433.6 MB, free: 1.273 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.26e-05/0.231, allocations: 20.98 kB / 433.6 MB, free: 1.25 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003578/0.2313, allocations: 282.8 kB / 433.9 MB, free: 0.9766 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.09636/0.3277, allocations: 1.1 MB / 435 MB, free: 140 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004224/0.3281, allocations: 280.8 kB / 435.2 MB, free: 140 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000156/0.3283, allocations: 121 kB / 435.3 MB, free: 139.9 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001099/0.3294, allocations: 481.6 kB / 435.8 MB, free: 139.9 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.729e-05/0.3294, allocations: 40.19 kB / 435.9 MB, free: 139.9 MB / 378.7 MB Notification: Performance of pre-optimization done (n=35): time 2.364e-06/0.3294, allocations: 1.156 kB / 435.9 MB, free: 139.9 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.006661/0.3361, allocations: 2.648 MB / 438.5 MB, free: 139.2 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.466e-05/0.3361, allocations: 86.23 kB / 438.6 MB, free: 139.1 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001276/0.3362, allocations: 248 kB / 438.8 MB, free: 138.9 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.295e-05/0.3363, allocations: 32.45 kB / 438.9 MB, free: 138.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.574e-05/0.3363, allocations: 229.8 kB / 439.1 MB, free: 138.7 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.659e-05/0.3364, allocations: 187.8 kB / 439.3 MB, free: 138.5 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001521/0.3366, allocations: 122.7 kB / 439.4 MB, free: 138.5 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.455e-05/0.3366, allocations: 0.511 MB / 439.9 MB, free: 138 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00026/0.3369, allocations: 177.9 kB / 440.1 MB, free: 137.9 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003089/0.3372, allocations: 406.1 kB / 440.5 MB, free: 137.6 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000559/0.3378, allocations: 0.5838 MB / 441.1 MB, free: 137.2 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.3378, allocations: 5.344 kB / 441.1 MB, free: 137.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0008428/0.3386, allocations: 0.644 MB / 441.7 MB, free: 137 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.3386, allocations: 7.438 kB / 441.7 MB, free: 137 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.577e-06/0.3386, allocations: 5.688 kB / 441.7 MB, free: 137 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000157/0.3388, allocations: 65.08 kB / 441.8 MB, free: 137 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005506/0.3393, allocations: 168 kB / 441.9 MB, free: 137 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003183/0.3397, allocations: 1.602 MB / 443.5 MB, free: 135.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003251/0.34, allocations: 28.8 kB / 443.6 MB, free: 135.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.999e-05/0.34, allocations: 40.27 kB / 443.6 MB, free: 135.4 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.0001384/0.3402, allocations: 194.2 kB / 443.8 MB, free: 135.2 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001026/0.3403, allocations: 45.62 kB / 443.8 MB, free: 135.2 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009597/0.3412, allocations: 0.6496 MB / 444.5 MB, free: 135 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.3412, allocations: 5.625 kB / 444.5 MB, free: 135 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.3412, allocations: 1.125 kB / 444.5 MB, free: 135 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.743e-06/0.3413, allocations: 3.516 kB / 444.5 MB, free: 135 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001429/0.3427, allocations: 1.373 MB / 445.9 MB, free: 134.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.3427, allocations: 6.156 kB / 445.9 MB, free: 134.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004764/0.3432, allocations: 132.6 kB / 446 MB, free: 134.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001022/0.3433, allocations: 49.62 kB / 446.1 MB, free: 134.1 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.533e-05/0.3433, allocations: 24.47 kB / 446.1 MB, free: 134.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000783/0.3441, allocations: 3.451 MB / 449.5 MB, free: 130.5 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.3441, allocations: 2.078 kB / 449.5 MB, free: 130.5 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001022/0.3451, allocations: 1.031 MB / 450.6 MB, free: 130 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.586e-05/0.3451, allocations: 24.72 kB / 450.6 MB, free: 130 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.253e-05/0.3452, allocations: 14.67 kB / 450.6 MB, free: 130 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003326/0.3455, allocations: 27.23 kB / 450.6 MB, free: 130 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.166e-05/0.3456, allocations: 48.12 kB / 450.7 MB, free: 129.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.94e-05/0.3456, allocations: 33.55 kB / 450.7 MB, free: 129.9 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.189e-05/0.3457, allocations: 158.3 kB / 450.9 MB, free: 129.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 5e-08/0.3457, allocations: 0 / 450.9 MB, free: 129.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001022/0.3467, allocations: 396.1 kB / 451.3 MB, free: 129.7 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.001561/0.3483, allocations: 0.8896 MB / 452.1 MB, free: 129.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006697/0.3489, allocations: 0.5296 MB / 452.7 MB, free: 129.4 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3489, allocations: 0 / 452.7 MB, free: 129.4 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003897/0.3493, allocations: 0.6065 MB / 453.3 MB, free: 129 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004808/0.3498, allocations: 128.4 kB / 453.4 MB, free: 129 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001163/0.351, allocations: 0.7992 MB / 454.2 MB, free: 128.4 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.789e-05/0.3511, allocations: 109.6 kB / 454.3 MB, free: 128.2 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004729/0.3515, allocations: 183.8 kB / 454.5 MB, free: 128.1 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001965/0.3517, allocations: 61.77 kB / 454.6 MB, free: 128 MB / 378.7 MB Notification: Performance of SimCode: time 1.222e-06/0.3517, allocations: 4 kB / 454.6 MB, free: 128 MB / 378.7 MB Notification: Performance of Templates: time 0.0134/0.3651, allocations: 16.7 MB / 471.3 MB, free: 111.6 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Media.Examples.MixtureGases.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Media.Examples.MixtureGases.pipe ; mkfifo Modelica_4.1.0_Modelica.Media.Examples.MixtureGases.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Media.Examples.MixtureGases.pipe >> ../files/Modelica_4.1.0_Modelica.Media.Examples.MixtureGases.sim & ./Modelica_4.1.0_Modelica.Media.Examples.MixtureGases -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Media.Examples.MixtureGases.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Media.Examples.MixtureGases_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.503168635070324]