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.001601/0.001601, allocations: 101.5 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.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.001598/0.001598, allocations: 184.6 kB / 24.49 MB, free: 3.961 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.328/1.328, allocations: 225.7 MB / 253.3 MB, free: 12.86 MB / 206.1 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.MixtureGases,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_MixtureGases",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001443, allocations: 43.92 kB / 371.2 MB, free: 9.727 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2435/0.245, allocations: 52.18 MB / 423.3 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.3768/0.6217, allocations: 131.2 MB / 0.5415 GB, free: 1.41 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.004028/0.6258, allocations: 3.609 MB / 0.5451 GB, free: 1.375 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002353/0.626, allocations: 2.781 kB / 0.5451 GB, free: 1.375 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000482/0.6265, allocations: 92.06 kB / 0.5451 GB, free: 1.375 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003125/0.6296, allocations: 1.219 MB / 0.5463 GB, free: 1.32 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001049/0.6307, allocations: 405.7 kB / 0.5467 GB, free: 1.301 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005426/0.6312, allocations: 465.8 kB / 0.5472 GB, free: 1.301 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.609e-05/0.6313, allocations: 11.34 kB / 0.5472 GB, free: 1.297 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003839/0.6317, allocations: 233.9 kB / 0.5474 GB, free: 1.297 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000226/0.6319, allocations: 147.8 kB / 0.5475 GB, free: 1.297 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.724e-05/0.6319, allocations: 17.56 kB / 0.5476 GB, free: 1.297 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003332/0.6353, allocations: 1.845 MB / 0.5494 GB, free: 1.273 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001532/0.6354, allocations: 139.2 kB / 0.5495 GB, free: 1.27 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000211/0.6356, allocations: 148.7 kB / 0.5496 GB, free: 1.27 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002365/0.638, allocations: 1.462 MB / 0.5511 GB, free: 1.219 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.638, allocations: 3.906 kB / 0.5511 GB, free: 1.219 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.638, allocations: 1.25 kB / 0.5511 GB, free: 1.219 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.54e-05/0.638, allocations: 0.9375 kB / 0.5511 GB, free: 1.219 MB / 446.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.002292/0.6403, allocations: 0.6991 MB / 0.5518 GB, free: 16.83 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.6403, allocations: 12.25 kB / 0.5518 GB, free: 16.83 MB / 462.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.95e-05/0.6404, allocations: 9.438 kB / 0.5518 GB, free: 16.83 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.185e-05/0.6404, allocations: 71.17 kB / 0.5518 GB, free: 16.79 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007343/0.6412, allocations: 113.9 kB / 0.5519 GB, free: 16.77 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004136/0.6416, allocations: 223.2 kB / 0.5522 GB, free: 16.63 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.901e-05/0.6416, allocations: 23.62 kB / 0.5522 GB, free: 16.63 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.316e-05/0.6417, allocations: 28.02 kB / 0.5522 GB, free: 16.63 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00113/0.6428, allocations: 0.8946 MB / 0.5531 GB, free: 16.2 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.632e-05/0.6428, allocations: 0.625 kB / 0.5531 GB, free: 16.2 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.828e-05/0.6429, allocations: 16.64 kB / 0.5531 GB, free: 16.2 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.839e-05/0.6429, allocations: 20.98 kB / 0.5531 GB, free: 16.2 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00106/0.644, allocations: 0.6458 MB / 0.5538 GB, free: 16.2 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.002641/0.6466, allocations: 1.176 MB / 0.5549 GB, free: 15.82 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008285/0.6474, allocations: 345.9 kB / 0.5552 GB, free: 15.77 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003873/0.6478, allocations: 173.4 kB / 0.5554 GB, free: 15.75 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001876/0.6497, allocations: 0.4953 MB / 0.5559 GB, free: 15.73 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.288e-05/0.6497, allocations: 38.28 kB / 0.5559 GB, free: 15.69 MB / 462.1 MB Notification: Performance of pre-optimization done (n=35): time 2.004e-06/0.6497, allocations: 3.938 kB / 0.5559 GB, free: 15.68 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.01389/0.6636, allocations: 3.182 MB / 0.559 GB, free: 14.96 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.284e-05/0.6637, allocations: 87.22 kB / 0.5591 GB, free: 14.86 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00017/0.6639, allocations: 177.6 kB / 0.5593 GB, free: 14.76 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 7.283e-05/0.6639, allocations: 35.92 kB / 0.5593 GB, free: 14.73 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001039/0.664, allocations: 178.7 kB / 0.5595 GB, free: 14.57 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001291/0.6642, allocations: 183.9 kB / 0.5597 GB, free: 14.46 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002098/0.6644, allocations: 120.5 kB / 0.5598 GB, free: 14.44 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.6645, allocations: 332.4 kB / 0.5601 GB, free: 14.13 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006636/0.6652, allocations: 265.8 kB / 0.5603 GB, free: 14.13 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007146/0.6659, allocations: 429.2 kB / 0.5608 GB, free: 13.95 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001429/0.6673, allocations: 0.6938 MB / 0.5614 GB, free: 13.77 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.6673, allocations: 3.531 kB / 0.5614 GB, free: 13.77 MB / 462.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001752/0.6691, allocations: 0.7814 MB / 0.5622 GB, free: 13.7 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/0.6691, allocations: 7.5 kB / 0.5622 GB, free: 13.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.6691, allocations: 5.188 kB / 0.5622 GB, free: 13.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002075/0.6693, allocations: 63.92 kB / 0.5623 GB, free: 13.68 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001082/0.6704, allocations: 178.4 kB / 0.5624 GB, free: 13.68 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007433/0.6711, allocations: 1.083 MB / 0.5635 GB, free: 12.64 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000752/0.6719, allocations: 43.77 kB / 0.5635 GB, free: 12.64 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.352e-05/0.672, allocations: 37.86 kB / 0.5636 GB, free: 12.64 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.0002618/0.6722, allocations: 178.4 kB / 0.5637 GB, free: 12.52 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001278/0.6724, allocations: 29.67 kB / 0.5638 GB, free: 12.51 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00196/0.6743, allocations: 0.7912 MB / 0.5645 GB, free: 12.42 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.311e-06/0.6743, allocations: 7.453 kB / 0.5646 GB, free: 12.42 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.6743, allocations: 3 kB / 0.5646 GB, free: 12.42 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.6743, allocations: 3.5 kB / 0.5646 GB, free: 12.42 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003027/0.6774, allocations: 1.466 MB / 0.566 GB, free: 11.86 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.156e-06/0.6774, allocations: 4.938 kB / 0.566 GB, free: 11.85 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001058/0.6784, allocations: 149.1 kB / 0.5661 GB, free: 11.85 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001375/0.6786, allocations: 39.48 kB / 0.5662 GB, free: 11.84 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.325e-05/0.6786, allocations: 27.58 kB / 0.5662 GB, free: 11.84 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001891/0.6805, allocations: 2.52 MB / 0.5687 GB, free: 9.398 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.6805, allocations: 3.375 kB / 0.5687 GB, free: 9.398 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002407/0.6829, allocations: 1.079 MB / 0.5697 GB, free: 9.086 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.956e-05/0.683, allocations: 27.39 kB / 0.5697 GB, free: 9.07 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.346e-05/0.6831, allocations: 12.28 kB / 0.5698 GB, free: 9.07 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007973/0.6839, allocations: 41.95 kB / 0.5698 GB, free: 9.066 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.532e-05/0.684, allocations: 54.58 kB / 0.5698 GB, free: 9.059 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.304e-05/0.684, allocations: 31.7 kB / 0.5699 GB, free: 9.059 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0001034/0.6841, allocations: 125.5 kB / 0.57 GB, free: 8.984 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.6841, allocations: 0 / 0.57 GB, free: 8.984 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001499/0.6856, allocations: 388.9 kB / 0.5704 GB, free: 8.938 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.004949/0.6906, allocations: 2.369 MB / 0.5727 GB, free: 7.957 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001749/0.6923, allocations: 0.6352 MB / 0.5733 GB, free: 7.938 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.6923, allocations: 2.531 kB / 0.5733 GB, free: 7.938 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009959/0.6933, allocations: 0.5169 MB / 0.5738 GB, free: 7.715 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007627/0.6941, allocations: 103.3 kB / 0.5739 GB, free: 7.699 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007741/0.7018, allocations: 4.253 MB / 0.5781 GB, free: 5.508 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001791/0.702, allocations: 182.1 kB / 0.5782 GB, free: 5.422 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0008573/0.7029, allocations: 184.3 kB / 0.5784 GB, free: 5.336 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003899/0.7033, allocations: 130.6 kB / 0.5785 GB, free: 5.324 MB / 462.1 MB Notification: Performance of SimCode: time 1.042e-06/0.7033, allocations: 0 / 0.5785 GB, free: 5.324 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05336/0.7566, allocations: 20.62 MB / 0.5987 GB, free: 11.2 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.99/14.74, allocations: 10.75 kB / 0.5987 GB, free: 11.19 MB / 478.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.624150622985326]