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.001582/0.001582, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.001808/0.001808, allocations: 216.2 kB / 23.75 MB, free: 4.668 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.416/1.416, allocations: 230.6 MB / 257.5 MB, free: 8.008 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.MixtureGases,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_MixtureGases",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001491/0.001491, allocations: 51.92 kB / 377.8 MB, free: 3.129 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2285/0.2299, allocations: 53.36 MB / 431.1 MB, free: 6.828 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.3965/0.6264, allocations: 155.9 MB / 0.5733 GB, free: 12.93 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.003762/0.6302, allocations: 4.062 MB / 0.5772 GB, free: 12.64 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001644/0.6304, allocations: 3.344 kB / 0.5773 GB, free: 12.64 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004748/0.6308, allocations: 107.3 kB / 0.5774 GB, free: 12.61 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002815/0.6336, allocations: 1.242 MB / 0.5786 GB, free: 12.36 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009036/0.6346, allocations: 400.8 kB / 0.5789 GB, free: 12.3 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005603/0.6351, allocations: 470.2 kB / 0.5794 GB, free: 12.22 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.676e-05/0.6352, allocations: 7.656 kB / 0.5794 GB, free: 12.21 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004043/0.6356, allocations: 258.9 kB / 0.5797 GB, free: 12.18 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002163/0.6358, allocations: 152.8 kB / 0.5798 GB, free: 12.17 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.765e-05/0.6358, allocations: 18.81 kB / 0.5798 GB, free: 12.16 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003623/0.6394, allocations: 2.264 MB / 0.582 GB, free: 11.92 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001203/0.6396, allocations: 137.9 kB / 0.5822 GB, free: 11.92 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001767/0.6397, allocations: 171 kB / 0.5823 GB, free: 11.9 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00225/0.642, allocations: 1.55 MB / 0.5838 GB, free: 11.37 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.642, allocations: 0 / 0.5838 GB, free: 11.37 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.642, allocations: 3.984 kB / 0.5838 GB, free: 11.37 MB / 462.1 MB Notification: Performance of Transformations before backend: time 6.472e-06/0.642, allocations: 0 / 0.5838 GB, free: 11.37 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.002185/0.6442, allocations: 0.7127 MB / 0.5845 GB, free: 10.87 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.6442, allocations: 10.22 kB / 0.5845 GB, free: 10.87 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.962e-05/0.6443, allocations: 65.55 kB / 0.5846 GB, free: 10.82 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006749/0.645, allocations: 112.2 kB / 0.5847 GB, free: 10.78 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004512/0.6454, allocations: 218.9 kB / 0.5849 GB, free: 10.61 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.391e-05/0.6455, allocations: 17.59 kB / 0.5849 GB, free: 10.61 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.441e-05/0.6455, allocations: 28.09 kB / 0.585 GB, free: 10.61 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009833/0.6465, allocations: 0.6027 MB / 0.5856 GB, free: 10.41 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.607e-05/0.6465, allocations: 2.906 kB / 0.5856 GB, free: 10.41 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.926e-05/0.6466, allocations: 10.97 kB / 0.5856 GB, free: 10.41 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.001e-05/0.6467, allocations: 22.7 kB / 0.5856 GB, free: 10.41 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001107/0.6478, allocations: 0.6477 MB / 0.5862 GB, free: 10.29 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.002785/0.6505, allocations: 1.257 MB / 0.5874 GB, free: 9.66 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008608/0.6514, allocations: 339.3 kB / 0.5878 GB, free: 9.555 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004076/0.6518, allocations: 168.2 kB / 0.5879 GB, free: 9.508 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001972/0.6538, allocations: 481.2 kB / 0.5884 GB, free: 9.387 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.68e-05/0.6538, allocations: 48.56 kB / 0.5884 GB, free: 9.336 MB / 462.1 MB Notification: Performance of pre-optimization done (n=35): time 1.824e-06/0.6538, allocations: 0 / 0.5884 GB, free: 9.336 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.01415/0.668, allocations: 3.198 MB / 0.5916 GB, free: 7.973 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.621e-05/0.668, allocations: 82.17 kB / 0.5916 GB, free: 7.879 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001707/0.6682, allocations: 184.7 kB / 0.5918 GB, free: 7.75 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.035e-05/0.6683, allocations: 34.67 kB / 0.5918 GB, free: 7.719 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001989/0.6685, allocations: 186.5 kB / 0.592 GB, free: 7.555 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001546/0.6686, allocations: 177.2 kB / 0.5922 GB, free: 7.426 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001952/0.6688, allocations: 123.1 kB / 0.5923 GB, free: 7.383 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.669, allocations: 340.8 kB / 0.5926 GB, free: 7.059 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006897/0.6697, allocations: 264.5 kB / 0.5929 GB, free: 7.012 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007932/0.6704, allocations: 426.4 kB / 0.5933 GB, free: 6.766 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001484/0.6719, allocations: 0.698 MB / 0.594 GB, free: 6.492 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.6719, allocations: 0 / 0.594 GB, free: 6.492 MB / 462.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001821/0.6738, allocations: 0.7762 MB / 0.5947 GB, free: 6.176 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/0.6738, allocations: 7.656 kB / 0.5947 GB, free: 6.176 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.6738, allocations: 3.406 kB / 0.5947 GB, free: 6.176 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002022/0.674, allocations: 67.47 kB / 0.5948 GB, free: 6.133 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001086/0.6751, allocations: 179.1 kB / 0.595 GB, free: 6.082 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007772/0.6758, allocations: 1.074 MB / 0.596 GB, free: 5.008 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007396/0.6766, allocations: 44.73 kB / 0.5961 GB, free: 4.984 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.828e-05/0.6767, allocations: 37.06 kB / 0.5961 GB, free: 4.977 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.0002576/0.6769, allocations: 181.5 kB / 0.5963 GB, free: 4.812 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001392/0.6771, allocations: 26.95 kB / 0.5963 GB, free: 4.801 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002073/0.6791, allocations: 0.7917 MB / 0.5971 GB, free: 4.32 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.63e-06/0.6791, allocations: 5.906 kB / 0.5971 GB, free: 4.32 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/0.6791, allocations: 4 kB / 0.5971 GB, free: 4.316 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.225e-06/0.6791, allocations: 3.984 kB / 0.5971 GB, free: 4.312 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00329/0.6824, allocations: 1.528 MB / 0.5986 GB, free: 3.172 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.6824, allocations: 2.469 kB / 0.5986 GB, free: 3.172 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001049/0.6835, allocations: 150.8 kB / 0.5987 GB, free: 3.121 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001267/0.6836, allocations: 43.81 kB / 0.5988 GB, free: 3.09 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.11e-05/0.6837, allocations: 26.03 kB / 0.5988 GB, free: 3.074 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002021/0.6857, allocations: 2.532 MB / 0.6013 GB, free: 468 kB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.6857, allocations: 2.75 kB / 0.6013 GB, free: 468 kB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002567/0.6883, allocations: 1.073 MB / 0.6023 GB, free: 15.76 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.949e-05/0.6883, allocations: 22.05 kB / 0.6023 GB, free: 15.75 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.187e-05/0.6884, allocations: 13.25 kB / 0.6024 GB, free: 15.74 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008083/0.6892, allocations: 39.84 kB / 0.6024 GB, free: 15.72 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.566e-05/0.6893, allocations: 56.72 kB / 0.6024 GB, free: 15.68 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.996e-05/0.6894, allocations: 32.03 kB / 0.6025 GB, free: 15.67 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0001244/0.6895, allocations: 125.9 kB / 0.6026 GB, free: 15.57 MB / 478.1 MB Notification: Performance of sort global known variables: time 8e-08/0.6895, allocations: 0 / 0.6026 GB, free: 15.57 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001602/0.6911, allocations: 396.1 kB / 0.603 GB, free: 15.49 MB / 478.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.00498/0.6961, allocations: 2.388 MB / 0.6053 GB, free: 13.91 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001859/0.698, allocations: 0.6323 MB / 0.6059 GB, free: 13.43 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.698, allocations: 1.094 kB / 0.6059 GB, free: 13.43 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001119/0.6991, allocations: 0.5306 MB / 0.6064 GB, free: 12.88 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007445/0.6998, allocations: 100.2 kB / 0.6065 GB, free: 12.78 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008003/0.7078, allocations: 4.245 MB / 0.6107 GB, free: 8.281 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000458/0.7083, allocations: 0.7891 MB / 0.6115 GB, free: 7.465 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0008597/0.7091, allocations: 183.1 kB / 0.6116 GB, free: 7.285 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000388/0.7095, allocations: 131.4 kB / 0.6118 GB, free: 7.156 MB / 478.1 MB Notification: Performance of SimCode: time 5.71e-07/0.7095, allocations: 0 / 0.6118 GB, free: 7.156 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0612/0.7707, allocations: 20.39 MB / 0.6317 GB, free: 2.898 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.95/14.72, allocations: 10.52 kB / 0.6317 GB, free: 2.891 MB / 494.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.35873791598715]