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.0007974/0.0007974, allocations: 76.06 kB / 20.67 MB, free: 3.891 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.0007492/0.0007492, allocations: 149.1 kB / 23.93 MB, free: 0.6328 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.857/0.857, allocations: 173.4 MB / 200.5 MB, free: 9.438 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: "" <> buildModelFMU(Modelica.Media.Examples.MixtureGases,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_MixtureGases",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.MixtureGases,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_MixtureGases",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.572e-06/1.572e-06, allocations: 0 / 318.4 MB, free: 6.383 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.924e-05/2.081e-05, allocations: 5.516 kB / 318.4 MB, free: 6.379 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.107/0.107, allocations: 131.3 MB / 449.7 MB, free: 2.574 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1791/0.286, allocations: 3.602 MB / 453.3 MB, free: 5.672 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001707/0.2862, allocations: 5.125 kB / 453.3 MB, free: 5.672 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003829/0.2866, allocations: 100.9 kB / 453.4 MB, free: 5.672 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002186/0.2888, allocations: 1.242 MB / 454.6 MB, free: 5.656 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007001/0.2895, allocations: 398.6 kB / 455 MB, free: 5.645 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005056/0.29, allocations: 473.7 kB / 455.5 MB, free: 5.645 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.781e-05/0.29, allocations: 10.14 kB / 455.5 MB, free: 5.637 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00035/0.2904, allocations: 285.8 kB / 455.8 MB, free: 5.633 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000151/0.2905, allocations: 134 kB / 455.9 MB, free: 5.633 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.133e-05/0.2906, allocations: 17.72 kB / 455.9 MB, free: 5.633 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002173/0.2927, allocations: 1.839 MB / 457.8 MB, free: 5.617 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000101/0.2928, allocations: 144.5 kB / 457.9 MB, free: 5.617 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001051/0.2929, allocations: 130.4 kB / 458 MB, free: 5.617 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001331/0.2943, allocations: 1.609 MB / 459.7 MB, free: 5.562 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.2943, allocations: 0 / 459.7 MB, free: 5.562 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2943, allocations: 1 kB / 459.7 MB, free: 5.562 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.662e-06/0.2943, allocations: 0 / 459.7 MB, free: 5.562 MB / 410.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.001253/0.2955, allocations: 0.6978 MB / 460.4 MB, free: 5.176 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.37e-05/0.2956, allocations: 12.59 kB / 460.4 MB, free: 5.176 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.712e-05/0.2956, allocations: 71.36 kB / 460.4 MB, free: 5.137 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004011/0.296, allocations: 113.4 kB / 460.5 MB, free: 5.121 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002476/0.2963, allocations: 216.5 kB / 460.8 MB, free: 4.984 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.41e-05/0.2963, allocations: 16.44 kB / 460.8 MB, free: 4.984 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.601e-05/0.2964, allocations: 40.8 kB / 460.8 MB, free: 4.977 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00064/0.297, allocations: 0.9013 MB / 461.7 MB, free: 4.543 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.478e-05/0.297, allocations: 0.75 kB / 461.7 MB, free: 4.543 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.784e-05/0.297, allocations: 15.97 kB / 461.7 MB, free: 4.543 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.42e-05/0.2971, allocations: 21.06 kB / 461.8 MB, free: 4.543 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006801/0.2978, allocations: 0.6424 MB / 462.4 MB, free: 4.535 MB / 410.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.001483/0.2992, allocations: 1.187 MB / 463.6 MB, free: 4.156 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004844/0.2997, allocations: 351 kB / 463.9 MB, free: 4.105 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002229/0.2999, allocations: 167.9 kB / 464.1 MB, free: 4.09 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009119/0.3009, allocations: 498 kB / 464.6 MB, free: 4.07 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.829e-05/0.3009, allocations: 46.33 kB / 464.6 MB, free: 4.031 MB / 410.7 MB Notification: Performance of pre-optimization done (n=35): time 1.593e-06/0.3009, allocations: 0 / 464.6 MB, free: 4.031 MB / 410.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.007101/0.308, allocations: 3.216 MB / 467.8 MB, free: 3.301 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.594e-05/0.308, allocations: 85.86 kB / 467.9 MB, free: 3.207 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.357e-05/0.3081, allocations: 181.2 kB / 468.1 MB, free: 3.098 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.671e-05/0.3081, allocations: 36.39 kB / 468.1 MB, free: 3.066 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.577e-05/0.3082, allocations: 177.1 kB / 468.3 MB, free: 2.918 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.933e-05/0.3083, allocations: 185.5 kB / 468.5 MB, free: 2.801 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001322/0.3084, allocations: 119.9 kB / 468.6 MB, free: 2.777 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.704e-05/0.3084, allocations: 337.5 kB / 468.9 MB, free: 2.461 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003903/0.3088, allocations: 269.6 kB / 469.2 MB, free: 2.461 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004553/0.3093, allocations: 424.9 kB / 469.6 MB, free: 2.281 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008829/0.3102, allocations: 0.6941 MB / 470.3 MB, free: 2.105 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.3102, allocations: 2.719 kB / 470.3 MB, free: 2.105 MB / 410.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001081/0.3112, allocations: 0.7828 MB / 471.1 MB, free: 2.039 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.3113, allocations: 8.625 kB / 471.1 MB, free: 2.039 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.3113, allocations: 5.188 kB / 471.1 MB, free: 2.039 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001351/0.3114, allocations: 57.58 kB / 471.2 MB, free: 2.023 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005101/0.3119, allocations: 183.9 kB / 471.3 MB, free: 2.023 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002678/0.3122, allocations: 1.079 MB / 472.4 MB, free: 0.9844 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003239/0.3125, allocations: 42.83 kB / 472.5 MB, free: 0.9844 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.339e-05/0.3125, allocations: 41.84 kB / 472.5 MB, free: 0.9844 MB / 410.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.0001455/0.3127, allocations: 177.7 kB / 472.7 MB, free: 0.8633 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.517e-05/0.3128, allocations: 28.3 kB / 472.7 MB, free: 0.8516 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001163/0.3139, allocations: 0.7827 MB / 473.5 MB, free: 0.7773 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.3139, allocations: 8.234 kB / 473.5 MB, free: 0.7773 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.3139, allocations: 6.656 kB / 473.5 MB, free: 0.7734 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.3139, allocations: 3.891 kB / 473.5 MB, free: 0.7734 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001666/0.3156, allocations: 1.456 MB / 475 MB, free: 228 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.3156, allocations: 3 kB / 475 MB, free: 228 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000469/0.3161, allocations: 144.3 kB / 475.1 MB, free: 228 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.083e-05/0.3161, allocations: 44.69 kB / 475.1 MB, free: 212 kB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.563e-05/0.3162, allocations: 21.45 kB / 475.2 MB, free: 212 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001133/0.3173, allocations: 2.525 MB / 477.7 MB, free: 13.77 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.3173, allocations: 4.188 kB / 477.7 MB, free: 13.77 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001372/0.3187, allocations: 1.075 MB / 478.8 MB, free: 13.46 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.208e-05/0.3187, allocations: 23.77 kB / 478.8 MB, free: 13.45 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.231e-05/0.3188, allocations: 12.88 kB / 478.8 MB, free: 13.45 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003513/0.3191, allocations: 43.72 kB / 478.8 MB, free: 13.45 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.089e-05/0.3191, allocations: 41.05 kB / 478.9 MB, free: 13.45 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.167e-05/0.3192, allocations: 37.67 kB / 478.9 MB, free: 13.45 MB / 426.7 MB Notification: Performance of sorting global known variables: time 5.514e-05/0.3192, allocations: 121.8 kB / 479 MB, free: 13.37 MB / 426.7 MB Notification: Performance of sort global known variables: time 7e-08/0.3192, allocations: 2.719 kB / 479 MB, free: 13.37 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001062/0.3203, allocations: 396.6 kB / 479.4 MB, free: 13.32 MB / 426.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.002991/0.3233, allocations: 2.398 MB / 481.8 MB, free: 12.41 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0009773/0.3243, allocations: 0.6289 MB / 482.5 MB, free: 12.41 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.3243, allocations: 3.312 kB / 482.5 MB, free: 12.41 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005483/0.3248, allocations: 0.5257 MB / 483 MB, free: 12.19 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004656/0.3253, allocations: 92.12 kB / 483.1 MB, free: 12.18 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004588/0.3299, allocations: 4.136 MB / 487.2 MB, free: 10.12 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001187/0.33, allocations: 186.1 kB / 487.4 MB, free: 10.03 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0004812/0.3305, allocations: 185.7 kB / 487.6 MB, free: 9.934 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002525/0.3307, allocations: 130.3 kB / 487.7 MB, free: 9.922 MB / 426.7 MB Notification: Performance of SimCode: time 9.92e-07/0.3307, allocations: 0 / 487.7 MB, free: 9.922 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03452/0.3652, allocations: 20.91 MB / 0.4967 GB, free: 2.086 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.427/8.792, allocations: 0 / 0.4967 GB, free: 2.086 MB / 426.7 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.MixtureGases_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_MixtureGases_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_MixtureGases.fmu > Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe 2>&1) [Timeout 52.5] 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: 10.584659522399306]