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.001296/0.001296, allocations: 112 kB / 20.43 MB, free: 1.449 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.001375/0.001375, allocations: 187.5 kB / 23.72 MB, free: 4.684 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.341/1.341, allocations: 225.6 MB / 252.5 MB, free: 13.05 MB / 206.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.001627/0.001627, allocations: 43.94 kB / 370.4 MB, free: 9.871 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2178/0.2195, allocations: 52.19 MB / 422.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.3805/0.5999, allocations: 153 MB / 0.5622 GB, free: 13.59 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.003809/0.6038, allocations: 4.061 MB / 0.5661 GB, free: 13.31 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00018/0.6039, allocations: 2.562 kB / 0.5661 GB, free: 13.31 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004275/0.6044, allocations: 105.5 kB / 0.5662 GB, free: 13.29 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002958/0.6073, allocations: 1.253 MB / 0.5674 GB, free: 13.02 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009942/0.6083, allocations: 392.8 kB / 0.5678 GB, free: 12.96 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005971/0.6089, allocations: 465.4 kB / 0.5683 GB, free: 12.88 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.069e-05/0.609, allocations: 11.25 kB / 0.5683 GB, free: 12.88 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003592/0.6093, allocations: 235 kB / 0.5685 GB, free: 12.85 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002185/0.6095, allocations: 148.8 kB / 0.5686 GB, free: 12.84 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.721e-05/0.6096, allocations: 15.31 kB / 0.5687 GB, free: 12.84 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003932/0.6135, allocations: 2.264 MB / 0.5709 GB, free: 12.59 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001489/0.6137, allocations: 146.8 kB / 0.571 GB, free: 12.58 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001988/0.6139, allocations: 168.7 kB / 0.5712 GB, free: 12.57 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002753/0.6166, allocations: 1.547 MB / 0.5727 GB, free: 12.48 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.6166, allocations: 0 / 0.5727 GB, free: 12.48 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.6166, allocations: 2.625 kB / 0.5727 GB, free: 12.48 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.513e-05/0.6166, allocations: 0 / 0.5727 GB, free: 12.48 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.002272/0.6189, allocations: 0.7036 MB / 0.5734 GB, free: 12.09 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.619, allocations: 10.47 kB / 0.5734 GB, free: 12.09 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.635e-05/0.619, allocations: 64.73 kB / 0.5734 GB, free: 12.05 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006904/0.6197, allocations: 111.7 kB / 0.5735 GB, free: 12.04 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004526/0.6202, allocations: 225.9 kB / 0.5738 GB, free: 11.88 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.2e-05/0.6202, allocations: 22.08 kB / 0.5738 GB, free: 11.88 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.078e-05/0.6203, allocations: 34.44 kB / 0.5738 GB, free: 11.88 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009822/0.6213, allocations: 0.5922 MB / 0.5744 GB, free: 11.82 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.735e-05/0.6213, allocations: 2.531 kB / 0.5744 GB, free: 11.82 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.957e-05/0.6213, allocations: 13.72 kB / 0.5744 GB, free: 11.82 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.061e-05/0.6214, allocations: 23.3 kB / 0.5744 GB, free: 11.82 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001132/0.6225, allocations: 0.6429 MB / 0.5751 GB, free: 11.77 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.002762/0.6252, allocations: 1.242 MB / 0.5763 GB, free: 11.15 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009359/0.6262, allocations: 345.6 kB / 0.5766 GB, free: 11.04 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004219/0.6266, allocations: 171.6 kB / 0.5768 GB, free: 10.99 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001973/0.6286, allocations: 0.4938 MB / 0.5773 GB, free: 10.86 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.753e-05/0.6286, allocations: 45.19 kB / 0.5773 GB, free: 10.82 MB / 462.1 MB Notification: Performance of pre-optimization done (n=35): time 2.044e-06/0.6286, allocations: 3.719 kB / 0.5773 GB, free: 10.82 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.01366/0.6423, allocations: 3.179 MB / 0.5804 GB, free: 9.465 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.312e-05/0.6423, allocations: 86.33 kB / 0.5805 GB, free: 9.367 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001463/0.6425, allocations: 182.1 kB / 0.5807 GB, free: 9.242 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 5.832e-05/0.6425, allocations: 35.02 kB / 0.5807 GB, free: 9.211 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001176/0.6427, allocations: 186.4 kB / 0.5809 GB, free: 9.047 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001512/0.6428, allocations: 178.3 kB / 0.581 GB, free: 8.918 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001885/0.643, allocations: 116 kB / 0.5811 GB, free: 8.883 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.6431, allocations: 336.9 kB / 0.5815 GB, free: 8.562 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006662/0.6438, allocations: 271.9 kB / 0.5817 GB, free: 8.508 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007719/0.6446, allocations: 425.7 kB / 0.5821 GB, free: 8.262 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001462/0.646, allocations: 0.6944 MB / 0.5828 GB, free: 7.992 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.646, allocations: 5.906 kB / 0.5828 GB, free: 7.988 MB / 462.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001736/0.6478, allocations: 0.7747 MB / 0.5836 GB, free: 7.789 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.6478, allocations: 6.844 kB / 0.5836 GB, free: 7.789 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.6478, allocations: 5.812 kB / 0.5836 GB, free: 7.789 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000208/0.648, allocations: 61.25 kB / 0.5836 GB, free: 7.758 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001092/0.6491, allocations: 184.9 kB / 0.5838 GB, free: 7.707 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007349/0.6498, allocations: 1.076 MB / 0.5849 GB, free: 6.652 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007283/0.6506, allocations: 52.77 kB / 0.5849 GB, free: 6.633 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.921e-05/0.6506, allocations: 35.2 kB / 0.585 GB, free: 6.629 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.0002504/0.6509, allocations: 176.1 kB / 0.5851 GB, free: 6.496 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001153/0.651, allocations: 27.45 kB / 0.5852 GB, free: 6.484 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002028/0.653, allocations: 0.7858 MB / 0.5859 GB, free: 6.215 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/0.653, allocations: 7.719 kB / 0.5859 GB, free: 6.215 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.962e-06/0.653, allocations: 0 / 0.5859 GB, free: 6.215 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.618e-06/0.6531, allocations: 5.188 kB / 0.5859 GB, free: 6.211 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003047/0.6561, allocations: 1.528 MB / 0.5874 GB, free: 5.375 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5e-06/0.6561, allocations: 4.594 kB / 0.5874 GB, free: 5.375 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001035/0.6571, allocations: 156 kB / 0.5876 GB, free: 5.32 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001206/0.6573, allocations: 42.5 kB / 0.5876 GB, free: 5.297 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.785e-05/0.6573, allocations: 27.75 kB / 0.5876 GB, free: 5.289 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001891/0.6592, allocations: 2.52 MB / 0.5901 GB, free: 2.789 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.6592, allocations: 6.844 kB / 0.5901 GB, free: 2.785 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002425/0.6616, allocations: 1.084 MB / 0.5912 GB, free: 2.312 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.585e-05/0.6617, allocations: 25.91 kB / 0.5912 GB, free: 2.297 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.07e-05/0.6618, allocations: 14.03 kB / 0.5912 GB, free: 2.297 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007874/0.6626, allocations: 36.81 kB / 0.5912 GB, free: 2.285 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.863e-05/0.6626, allocations: 56.97 kB / 0.5913 GB, free: 2.25 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.549e-05/0.6627, allocations: 35.19 kB / 0.5913 GB, free: 2.242 MB / 462.1 MB Notification: Performance of sorting global known variables: time 9.281e-05/0.6628, allocations: 118.7 kB / 0.5914 GB, free: 2.16 MB / 462.1 MB Notification: Performance of sort global known variables: time 7e-08/0.6628, allocations: 0 / 0.5914 GB, free: 2.16 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001361/0.6642, allocations: 389.6 kB / 0.5918 GB, free: 2.105 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.004879/0.669, allocations: 2.369 MB / 0.5941 GB, free: 0.8008 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001751/0.6708, allocations: 0.6389 MB / 0.5948 GB, free: 0.6562 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.6708, allocations: 0 / 0.5948 GB, free: 0.6562 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00101/0.6718, allocations: 0.5225 MB / 0.5953 GB, free: 368 kB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007284/0.6725, allocations: 98.53 kB / 0.5954 GB, free: 328 kB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007506/0.68, allocations: 4.253 MB / 0.5995 GB, free: 13.68 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004175/0.6805, allocations: 0.7811 MB / 0.6003 GB, free: 12.95 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0008071/0.6813, allocations: 187.8 kB / 0.6005 GB, free: 12.83 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003677/0.6816, allocations: 127 kB / 0.6006 GB, free: 12.8 MB / 478.1 MB Notification: Performance of SimCode: time 6.92e-07/0.6816, allocations: 0 / 0.6006 GB, free: 12.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05834/0.74, allocations: 20.2 MB / 0.6203 GB, free: 9.27 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14/14.74, allocations: 18.39 kB / 0.6203 GB, free: 9.258 MB / 494.1 MB " [Timeout remaining time 645] (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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/MixtureGases/MixtureGases.csv","/var/lib/jenkins1/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: 17.281954361125827]