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.001265/0.001265, allocations: 105.1 kB / 21.21 MB, free: 0.6523 MB / 14.72 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.001397/0.001397, allocations: 211.9 kB / 24.51 MB, free: 3.941 MB / 14.72 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 1.387/1.387, allocations: 230.6 MB / 258.3 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Media.Examples.MixtureGases,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_MixtureGases",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.MixtureGases,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_MixtureGases",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001423/0.001423, allocations: 55.86 kB / 378.5 MB, free: 2.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2358/0.2372, allocations: 53.37 MB / 431.8 MB, free: 6.625 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.3904/0.6276, allocations: 134.1 MB / 0.5527 GB, free: 15.98 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.003539/0.6311, allocations: 3.611 MB / 0.5562 GB, free: 15.91 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001466/0.6313, allocations: 1.375 kB / 0.5562 GB, free: 15.91 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004221/0.6317, allocations: 92.11 kB / 0.5563 GB, free: 15.91 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002728/0.6344, allocations: 1.213 MB / 0.5574 GB, free: 15.85 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009266/0.6354, allocations: 405.2 kB / 0.5578 GB, free: 15.83 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005291/0.6359, allocations: 465.5 kB / 0.5583 GB, free: 15.83 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.753e-05/0.6359, allocations: 9.453 kB / 0.5583 GB, free: 15.82 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000403/0.6363, allocations: 249.4 kB / 0.5585 GB, free: 15.82 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002156/0.6366, allocations: 156.7 kB / 0.5587 GB, free: 15.82 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.436e-05/0.6366, allocations: 15.88 kB / 0.5587 GB, free: 15.82 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003276/0.6399, allocations: 1.857 MB / 0.5605 GB, free: 15.79 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001354/0.64, allocations: 134.3 kB / 0.5606 GB, free: 15.79 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001916/0.6402, allocations: 147.4 kB / 0.5608 GB, free: 15.79 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002236/0.6425, allocations: 1.476 MB / 0.5622 GB, free: 15.73 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.6425, allocations: 0 / 0.5622 GB, free: 15.73 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.6425, allocations: 0 / 0.5622 GB, free: 15.73 MB / 462.1 MB Notification: Performance of Transformations before backend: time 7.765e-06/0.6425, allocations: 4 kB / 0.5622 GB, free: 15.73 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.002229/0.6447, allocations: 0.7042 MB / 0.5629 GB, free: 15.33 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.6447, allocations: 9.938 kB / 0.5629 GB, free: 15.33 MB / 462.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.044e-05/0.6448, allocations: 8.094 kB / 0.5629 GB, free: 15.33 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.587e-05/0.6448, allocations: 71.59 kB / 0.563 GB, free: 15.29 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006998/0.6455, allocations: 114 kB / 0.5631 GB, free: 15.28 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004056/0.6459, allocations: 219.3 kB / 0.5633 GB, free: 15.14 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.897e-05/0.646, allocations: 19.59 kB / 0.5633 GB, free: 15.14 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.809e-05/0.646, allocations: 26.28 kB / 0.5634 GB, free: 15.14 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001155/0.6472, allocations: 0.8973 MB / 0.5642 GB, free: 14.71 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.663e-05/0.6472, allocations: 4 kB / 0.5642 GB, free: 14.7 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.477e-05/0.6473, allocations: 11.7 kB / 0.5642 GB, free: 14.7 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.525e-05/0.6473, allocations: 28.5 kB / 0.5643 GB, free: 14.7 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00108/0.6484, allocations: 0.6464 MB / 0.5649 GB, free: 14.69 MB / 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.002697/0.6511, allocations: 1.184 MB / 0.5661 GB, free: 14.3 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000848/0.6519, allocations: 352.5 kB / 0.5664 GB, free: 14.24 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003885/0.6523, allocations: 167 kB / 0.5666 GB, free: 14.23 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001837/0.6541, allocations: 479.2 kB / 0.567 GB, free: 14.2 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.205e-05/0.6542, allocations: 44.81 kB / 0.5671 GB, free: 14.16 MB / 462.1 MB Notification: Performance of pre-optimization done (n=35): time 2.574e-06/0.6542, allocations: 0 / 0.5671 GB, free: 14.16 MB / 462.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.01416/0.6683, allocations: 3.187 MB / 0.5702 GB, free: 13.38 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.274e-05/0.6684, allocations: 91.77 kB / 0.5703 GB, free: 13.28 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001663/0.6686, allocations: 180.1 kB / 0.5704 GB, free: 13.17 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.568e-05/0.6686, allocations: 31.33 kB / 0.5705 GB, free: 13.14 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001172/0.6688, allocations: 191.5 kB / 0.5706 GB, free: 12.98 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000153/0.6689, allocations: 184.3 kB / 0.5708 GB, free: 12.87 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002029/0.6691, allocations: 117.4 kB / 0.5709 GB, free: 12.85 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.6693, allocations: 336.4 kB / 0.5712 GB, free: 12.54 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006663/0.6699, allocations: 264.6 kB / 0.5715 GB, free: 12.54 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007897/0.6707, allocations: 422.6 kB / 0.5719 GB, free: 12.36 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001419/0.6721, allocations: 0.7016 MB / 0.5726 GB, free: 12.16 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.6721, allocations: 0 / 0.5726 GB, free: 12.16 MB / 462.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001808/0.6739, allocations: 0.7818 MB / 0.5734 GB, free: 12.09 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.902e-05/0.674, allocations: 8.156 kB / 0.5734 GB, free: 12.09 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.836e-06/0.674, allocations: 4.094 kB / 0.5734 GB, free: 12.09 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002295/0.6742, allocations: 63.8 kB / 0.5734 GB, free: 12.06 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001079/0.6753, allocations: 179.7 kB / 0.5736 GB, free: 12.06 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007434/0.676, allocations: 1.074 MB / 0.5746 GB, free: 11.03 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007329/0.6768, allocations: 51.25 kB / 0.5747 GB, free: 11.02 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.586e-05/0.6768, allocations: 39.7 kB / 0.5747 GB, free: 11.02 MB / 462.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.0002513/0.6771, allocations: 171.8 kB / 0.5749 GB, free: 10.9 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001217/0.6772, allocations: 31.02 kB / 0.5749 GB, free: 10.89 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00199/0.6792, allocations: 0.7841 MB / 0.5757 GB, free: 10.79 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.635e-06/0.6792, allocations: 7.453 kB / 0.5757 GB, free: 10.79 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.588e-06/0.6792, allocations: 11.28 kB / 0.5757 GB, free: 10.78 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.6792, allocations: 2.531 kB / 0.5757 GB, free: 10.78 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003076/0.6823, allocations: 1.459 MB / 0.5771 GB, free: 10.21 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.846e-06/0.6823, allocations: 10.97 kB / 0.5771 GB, free: 10.21 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001053/0.6834, allocations: 146 kB / 0.5773 GB, free: 10.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001304/0.6835, allocations: 43.81 kB / 0.5773 GB, free: 10.19 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.465e-05/0.6836, allocations: 24.92 kB / 0.5774 GB, free: 10.19 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001938/0.6855, allocations: 2.519 MB / 0.5798 GB, free: 7.746 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.6855, allocations: 2.25 kB / 0.5798 GB, free: 7.746 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002349/0.6878, allocations: 1.08 MB / 0.5809 GB, free: 7.43 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.834e-05/0.6879, allocations: 19.67 kB / 0.5809 GB, free: 7.418 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.351e-05/0.688, allocations: 18.34 kB / 0.5809 GB, free: 7.414 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000768/0.6887, allocations: 39.28 kB / 0.5809 GB, free: 7.414 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.475e-05/0.6888, allocations: 50.22 kB / 0.581 GB, free: 7.406 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.034e-05/0.6889, allocations: 34.41 kB / 0.581 GB, free: 7.406 MB / 462.1 MB Notification: Performance of sorting global known variables: time 9.22e-05/0.689, allocations: 128.4 kB / 0.5811 GB, free: 7.328 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.689, allocations: 0 / 0.5811 GB, free: 7.328 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001394/0.6904, allocations: 392.2 kB / 0.5815 GB, free: 7.277 MB / 462.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.004969/0.6953, allocations: 2.381 MB / 0.5838 GB, free: 6.297 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001734/0.6971, allocations: 0.6395 MB / 0.5845 GB, free: 6.27 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/0.6971, allocations: 0 / 0.5845 GB, free: 6.27 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001029/0.6981, allocations: 0.525 MB / 0.585 GB, free: 6.043 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007379/0.6988, allocations: 100.2 kB / 0.5851 GB, free: 6.027 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007299/0.7061, allocations: 4.256 MB / 0.5892 GB, free: 3.812 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001774/0.7063, allocations: 175.5 kB / 0.5894 GB, free: 3.691 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0007974/0.7071, allocations: 188.2 kB / 0.5896 GB, free: 3.578 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003637/0.7075, allocations: 130.1 kB / 0.5897 GB, free: 3.547 MB / 462.1 MB Notification: Performance of SimCode: time 9.01e-07/0.7075, allocations: 0 / 0.5897 GB, free: 3.547 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0543/0.7618, allocations: 20.85 MB / 0.6101 GB, free: 5.18 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.13/14.9, allocations: 2.812 kB / 0.6101 GB, free: 5.18 MB / 478.1 MB " [Timeout remaining time 645] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Media.Examples.MixtureGases_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Media_Examples_MixtureGases_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Media_Examples_MixtureGases.fmu > Modelica_4.1.0_Modelica.Media.Examples.MixtureGases.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Media.Examples.MixtureGases_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/MixtureGases/MixtureGases.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 17.85684234695509]