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.0008172/0.0008172, allocations: 76.08 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.0007706/0.0007706, allocations: 157 kB / 23.93 MB, free: 0.6289 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.8713/0.8713, allocations: 173.4 MB / 200.4 MB, free: 9.457 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.513e-06/1.513e-06, allocations: 0 / 318.4 MB, free: 6.379 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.46e-05/1.611e-05, allocations: 2.281 kB / 318.4 MB, free: 6.375 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.1079/0.1079, allocations: 131.3 MB / 449.7 MB, free: 2.57 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1793/0.2872, allocations: 3.601 MB / 453.3 MB, free: 5.703 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001716/0.2874, allocations: 8 kB / 453.3 MB, free: 5.703 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000413/0.2878, allocations: 94.72 kB / 453.4 MB, free: 5.703 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002543/0.2903, allocations: 1.237 MB / 454.6 MB, free: 5.688 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008233/0.2912, allocations: 402.2 kB / 455 MB, free: 5.676 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005735/0.2917, allocations: 470.9 kB / 455.5 MB, free: 5.676 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.237e-05/0.2918, allocations: 16.47 kB / 455.5 MB, free: 5.668 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004131/0.2922, allocations: 290.5 kB / 455.8 MB, free: 5.664 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001744/0.2924, allocations: 129.5 kB / 455.9 MB, free: 5.664 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.09e-05/0.2924, allocations: 15.38 kB / 455.9 MB, free: 5.664 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002536/0.2949, allocations: 1.84 MB / 457.8 MB, free: 5.648 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000117/0.2951, allocations: 142.3 kB / 457.9 MB, free: 5.648 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001158/0.2952, allocations: 131.5 kB / 458 MB, free: 5.648 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0016/0.2968, allocations: 1.602 MB / 459.6 MB, free: 5.594 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.2968, allocations: 8.766 kB / 459.7 MB, free: 5.594 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.2968, allocations: 1.062 kB / 459.7 MB, free: 5.594 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.423e-06/0.2968, allocations: 0 / 459.7 MB, free: 5.594 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.001372/0.2982, allocations: 0.6954 MB / 460.4 MB, free: 5.207 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.511e-05/0.2982, allocations: 13.84 kB / 460.4 MB, free: 5.207 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.773e-05/0.2983, allocations: 70.16 kB / 460.4 MB, free: 5.168 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004173/0.2987, allocations: 112.3 kB / 460.5 MB, free: 5.152 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002598/0.2989, allocations: 219.7 kB / 460.8 MB, free: 5.016 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.597e-05/0.299, allocations: 22.72 kB / 460.8 MB, free: 5.016 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.111e-05/0.299, allocations: 31.05 kB / 460.8 MB, free: 5.008 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007145/0.2997, allocations: 0.9007 MB / 461.7 MB, free: 4.574 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.576e-05/0.2997, allocations: 0.6562 kB / 461.7 MB, free: 4.574 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.323e-05/0.2998, allocations: 18.22 kB / 461.7 MB, free: 4.574 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.672e-05/0.2998, allocations: 18.33 kB / 461.7 MB, free: 4.574 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007407/0.3006, allocations: 0.6457 MB / 462.4 MB, free: 4.566 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.001769/0.3023, allocations: 1.186 MB / 463.6 MB, free: 4.188 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005374/0.3029, allocations: 354.4 kB / 463.9 MB, free: 4.137 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002485/0.3031, allocations: 167.8 kB / 464.1 MB, free: 4.121 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009816/0.3041, allocations: 498.1 kB / 464.6 MB, free: 4.102 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.719e-05/0.3041, allocations: 37.91 kB / 464.6 MB, free: 4.062 MB / 410.7 MB Notification: Performance of pre-optimization done (n=35): time 1.783e-06/0.3041, allocations: 0.7812 kB / 464.6 MB, free: 4.062 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.007664/0.3118, allocations: 3.222 MB / 467.8 MB, free: 3.336 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.131e-05/0.3118, allocations: 83.8 kB / 467.9 MB, free: 3.242 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001053/0.3119, allocations: 181.9 kB / 468.1 MB, free: 3.133 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.716e-05/0.3119, allocations: 37.14 kB / 468.1 MB, free: 3.102 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.042e-05/0.312, allocations: 180.5 kB / 468.3 MB, free: 2.953 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.562e-05/0.3121, allocations: 180.9 kB / 468.5 MB, free: 2.836 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001366/0.3122, allocations: 117.6 kB / 468.6 MB, free: 2.812 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.761e-05/0.3123, allocations: 345 kB / 468.9 MB, free: 2.496 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004283/0.3127, allocations: 264.7 kB / 469.2 MB, free: 2.496 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004948/0.3132, allocations: 425.8 kB / 469.6 MB, free: 2.316 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009089/0.3141, allocations: 0.6925 MB / 470.3 MB, free: 2.141 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.3141, allocations: 2.969 kB / 470.3 MB, free: 2.141 MB / 410.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001126/0.3152, allocations: 0.7826 MB / 471.1 MB, free: 2.074 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/0.3152, allocations: 10.06 kB / 471.1 MB, free: 2.074 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-06/0.3153, allocations: 2.719 kB / 471.1 MB, free: 2.074 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001593/0.3154, allocations: 56.5 kB / 471.2 MB, free: 2.059 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005811/0.316, allocations: 181.9 kB / 471.3 MB, free: 2.059 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003024/0.3163, allocations: 1.078 MB / 472.4 MB, free: 1.02 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003651/0.3167, allocations: 46.47 kB / 472.5 MB, free: 1.02 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.896e-05/0.3167, allocations: 37.22 kB / 472.5 MB, free: 1.02 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.0001824/0.3169, allocations: 181.9 kB / 472.7 MB, free: 0.8984 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.329e-05/0.317, allocations: 26.89 kB / 472.7 MB, free: 0.8867 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001311/0.3183, allocations: 0.7846 MB / 473.5 MB, free: 0.8125 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.3183, allocations: 7.375 kB / 473.5 MB, free: 0.8125 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.3183, allocations: 3.938 kB / 473.5 MB, free: 0.8086 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.3183, allocations: 6.469 kB / 473.5 MB, free: 0.8086 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001886/0.3202, allocations: 1.46 MB / 475 MB, free: 264 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.3202, allocations: 0.6875 kB / 475 MB, free: 264 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005138/0.3207, allocations: 148.8 kB / 475.1 MB, free: 264 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.102e-05/0.3208, allocations: 42.38 kB / 475.1 MB, free: 248 kB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.921e-05/0.3208, allocations: 20.55 kB / 475.2 MB, free: 248 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001191/0.322, allocations: 2.526 MB / 477.7 MB, free: 13.8 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.322, allocations: 3.625 kB / 477.7 MB, free: 13.8 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001494/0.3235, allocations: 1.071 MB / 478.8 MB, free: 13.5 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.978e-05/0.3236, allocations: 22.98 kB / 478.8 MB, free: 13.48 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.624e-05/0.3236, allocations: 13.84 kB / 478.8 MB, free: 13.48 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003931/0.324, allocations: 43.39 kB / 478.8 MB, free: 13.48 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.049e-05/0.324, allocations: 43.98 kB / 478.9 MB, free: 13.48 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.75e-05/0.3241, allocations: 35.22 kB / 478.9 MB, free: 13.48 MB / 426.7 MB Notification: Performance of sorting global known variables: time 6.943e-05/0.3242, allocations: 126.8 kB / 479 MB, free: 13.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.3242, allocations: 0 / 479 MB, free: 13.4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001202/0.3254, allocations: 399.4 kB / 479.4 MB, free: 13.35 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.003316/0.3287, allocations: 2.391 MB / 481.8 MB, free: 12.45 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001126/0.3298, allocations: 0.6341 MB / 482.5 MB, free: 12.44 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.3298, allocations: 0 / 482.5 MB, free: 12.44 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006143/0.3304, allocations: 0.5236 MB / 483 MB, free: 12.22 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005116/0.3309, allocations: 98.22 kB / 483.1 MB, free: 12.21 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004983/0.3359, allocations: 4.133 MB / 487.2 MB, free: 10.15 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001247/0.336, allocations: 183.8 kB / 487.4 MB, free: 10.06 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0005664/0.3366, allocations: 190.9 kB / 487.6 MB, free: 9.965 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002668/0.3369, allocations: 130.6 kB / 487.7 MB, free: 9.953 MB / 426.7 MB Notification: Performance of SimCode: time 9.72e-07/0.3369, allocations: 0 / 487.7 MB, free: 9.953 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0353/0.3722, allocations: 20.91 MB / 0.4967 GB, free: 2.109 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.819/9.192, allocations: 0 / 0.4967 GB, free: 2.109 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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Media.Examples.MixtureGases_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00019992 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.csv","/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: 11.09261819254607]