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.001733/0.001733, allocations: 124.2 kB / 17.78 MB, free: 5.121 MB / 14.72 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.001749/0.001749, allocations: 189.2 kB / 20.73 MB, free: 2.184 MB / 14.72 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 1.356/1.356, allocations: 225.6 MB / 249.1 MB, free: 3.637 MB / 190.1 MB " [Timeout remaining time 178] 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 0.001486/0.001486, allocations: 51.92 kB / 365.6 MB, free: 0.875 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09287/0.09436, allocations: 52.13 MB / 417.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.3471/0.4415, allocations: 153 MB / 0.5574 GB, free: 13.45 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.004733/0.4462, allocations: 4.049 MB / 0.5613 GB, free: 9.395 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001196/0.4463, allocations: 5.969 kB / 0.5613 GB, free: 9.391 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004484/0.4468, allocations: 107.4 kB / 0.5614 GB, free: 9.285 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002598/0.4494, allocations: 1.19 MB / 0.5626 GB, free: 8.094 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009455/0.4503, allocations: 391.4 kB / 0.563 GB, free: 7.711 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005755/0.4509, allocations: 454.8 kB / 0.5634 GB, free: 7.266 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.244e-05/0.451, allocations: 9.547 kB / 0.5634 GB, free: 7.258 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003943/0.4514, allocations: 227.1 kB / 0.5636 GB, free: 7.035 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002315/0.4516, allocations: 151.5 kB / 0.5638 GB, free: 6.887 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.697e-05/0.4516, allocations: 16 kB / 0.5638 GB, free: 6.871 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003592/0.4552, allocations: 2.166 MB / 0.5659 GB, free: 4.699 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001392/0.4553, allocations: 131.7 kB / 0.566 GB, free: 4.57 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000184/0.4555, allocations: 167.4 kB / 0.5662 GB, free: 4.406 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00201/0.4575, allocations: 1.543 MB / 0.5677 GB, free: 2.859 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.4575, allocations: 0 / 0.5677 GB, free: 2.859 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.4575, allocations: 0 / 0.5677 GB, free: 2.859 MB / 462.1 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.4576, allocations: 0 / 0.5677 GB, free: 2.859 MB / 462.1 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.002105/0.4597, allocations: 0.7789 MB / 0.5684 GB, free: 2.027 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.578e-05/0.4597, allocations: 8.031 kB / 0.5685 GB, free: 2.02 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.602e-05/0.4598, allocations: 70.72 kB / 0.5685 GB, free: 1.941 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006794/0.4605, allocations: 112.6 kB / 0.5686 GB, free: 1.832 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004627/0.4609, allocations: 275.2 kB / 0.5689 GB, free: 1.523 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.179e-05/0.4609, allocations: 24.48 kB / 0.5689 GB, free: 1.5 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.332e-05/0.461, allocations: 31.95 kB / 0.5689 GB, free: 1.469 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001097/0.4621, allocations: 0.5887 MB / 0.5695 GB, free: 0.8711 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.807e-05/0.4621, allocations: 4 kB / 0.5695 GB, free: 0.8672 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.055e-05/0.4622, allocations: 12.5 kB / 0.5695 GB, free: 0.8555 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.676e-05/0.4622, allocations: 28.41 kB / 0.5696 GB, free: 0.8281 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001271/0.4635, allocations: 0.6385 MB / 0.5702 GB, free: 196 kB / 462.1 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.002978/0.4665, allocations: 1.276 MB / 0.5714 GB, free: 14.86 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009349/0.4674, allocations: 350 kB / 0.5718 GB, free: 14.5 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004507/0.4679, allocations: 169.5 kB / 0.5719 GB, free: 14.33 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002494/0.4703, allocations: 1.387 MB / 0.5733 GB, free: 12.72 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.216e-05/0.4704, allocations: 38.91 kB / 0.5733 GB, free: 12.67 MB / 478.1 MB Notification: Performance of pre-optimization done (n=35): time 1.764e-06/0.4704, allocations: 0 / 0.5733 GB, free: 12.67 MB / 478.1 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.01453/0.4849, allocations: 3.495 MB / 0.5767 GB, free: 8.984 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.356e-05/0.485, allocations: 85.09 kB / 0.5768 GB, free: 8.883 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001715/0.4851, allocations: 180.8 kB / 0.577 GB, free: 8.699 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 6.058e-05/0.4852, allocations: 41.69 kB / 0.577 GB, free: 8.652 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001171/0.4853, allocations: 176.6 kB / 0.5772 GB, free: 8.473 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001599/0.4855, allocations: 182.4 kB / 0.5774 GB, free: 8.293 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002182/0.4857, allocations: 122.2 kB / 0.5775 GB, free: 8.164 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.4858, allocations: 338.8 kB / 0.5778 GB, free: 7.824 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007157/0.4866, allocations: 261.1 kB / 0.5781 GB, free: 7.57 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008494/0.4874, allocations: 425.5 kB / 0.5785 GB, free: 7.086 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001624/0.489, allocations: 0.6897 MB / 0.5791 GB, free: 6.332 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.489, allocations: 0 / 0.5791 GB, free: 6.332 MB / 478.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001969/0.491, allocations: 0.7867 MB / 0.5799 GB, free: 5.535 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.113e-05/0.491, allocations: 12.61 kB / 0.5799 GB, free: 5.523 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.367e-06/0.491, allocations: 11.94 kB / 0.5799 GB, free: 5.512 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002043/0.4912, allocations: 57.62 kB / 0.58 GB, free: 5.449 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001122/0.4924, allocations: 175.7 kB / 0.5802 GB, free: 5.277 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007397/0.4931, allocations: 1.081 MB / 0.5812 GB, free: 4.145 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007453/0.4939, allocations: 43.89 kB / 0.5812 GB, free: 4.102 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.564e-05/0.4939, allocations: 40.17 kB / 0.5813 GB, free: 4.062 MB / 478.1 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.0002549/0.4942, allocations: 177.6 kB / 0.5815 GB, free: 3.879 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001193/0.4943, allocations: 27.86 kB / 0.5815 GB, free: 3.852 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00216/0.4965, allocations: 0.7829 MB / 0.5822 GB, free: 3.055 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.4965, allocations: 4 kB / 0.5823 GB, free: 3.051 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.4965, allocations: 7.984 kB / 0.5823 GB, free: 3.043 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.4965, allocations: 0 / 0.5823 GB, free: 3.043 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00332/0.4998, allocations: 1.559 MB / 0.5838 GB, free: 1.391 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.101e-06/0.4998, allocations: 4 kB / 0.5838 GB, free: 1.387 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001032/0.5008, allocations: 147.7 kB / 0.5839 GB, free: 1.242 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001302/0.501, allocations: 46.78 kB / 0.584 GB, free: 1.191 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.478e-05/0.501, allocations: 27.97 kB / 0.584 GB, free: 1.164 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002011/0.503, allocations: 2.728 MB / 0.5867 GB, free: 14.16 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.503, allocations: 4 kB / 0.5867 GB, free: 14.16 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002584/0.5056, allocations: 1.076 MB / 0.5877 GB, free: 13.04 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.864e-05/0.5057, allocations: 101 kB / 0.5878 GB, free: 12.92 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.035e-05/0.5058, allocations: 12 kB / 0.5878 GB, free: 12.91 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007727/0.5066, allocations: 43.89 kB / 0.5879 GB, free: 12.86 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.098e-05/0.5066, allocations: 51.88 kB / 0.5879 GB, free: 12.81 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.212e-05/0.5067, allocations: 35.97 kB / 0.588 GB, free: 12.78 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001038/0.5068, allocations: 124.4 kB / 0.5881 GB, free: 12.66 MB / 494.1 MB Notification: Performance of sort global known variables: time 6e-08/0.5068, allocations: 0 / 0.5881 GB, free: 12.66 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001282/0.5081, allocations: 395.2 kB / 0.5884 GB, free: 12.27 MB / 494.1 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.005203/0.5133, allocations: 2.381 MB / 0.5908 GB, free: 9.832 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001868/0.5152, allocations: 0.6294 MB / 0.5914 GB, free: 9.207 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.187e-06/0.5152, allocations: 4 kB / 0.5914 GB, free: 9.203 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001084/0.5163, allocations: 0.5254 MB / 0.5919 GB, free: 8.652 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007466/0.517, allocations: 101.6 kB / 0.592 GB, free: 8.559 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007919/0.5249, allocations: 4.248 MB / 0.5961 GB, free: 4.043 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004465/0.5254, allocations: 0.7852 MB / 0.5969 GB, free: 3.234 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0008399/0.5262, allocations: 183.1 kB / 0.5971 GB, free: 3.055 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000368/0.5266, allocations: 131.4 kB / 0.5972 GB, free: 2.926 MB / 494.1 MB Notification: Performance of SimCode: time 5.51e-07/0.5266, allocations: 0 / 0.5972 GB, free: 2.926 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05248/0.5791, allocations: 19.69 MB / 0.6164 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.03/13.61, allocations: 14.5 kB / 0.6165 GB, free: 15.32 MB / 0.5137 GB " [Timeout remaining time 646] (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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/MixtureGases/MixtureGases.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 16.19341570371762]