Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.MixtureGases.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001708/0.001708, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001922/0.001922, allocations: 211.9 kB / 23.73 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.49/1.49, allocations: 230.5 MB / 257.4 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.MixtureGases,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_MixtureGases",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.MixtureGases,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_MixtureGases",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001981/0.001981, allocations: 59.91 kB / 377.7 MB, free: 2.832 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2451/0.247, allocations: 53.4 MB / 431.1 MB, free: 6.453 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.3928/0.6399, allocations: 134.2 MB / 0.552 GB, free: 15.93 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.003684/0.6436, allocations: 3.607 MB / 0.5556 GB, free: 15.86 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001558/0.6437, allocations: 1.375 kB / 0.5556 GB, free: 15.86 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004353/0.6442, allocations: 94.02 kB / 0.5557 GB, free: 15.86 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003046/0.6472, allocations: 1.218 MB / 0.5568 GB, free: 15.8 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001011/0.6482, allocations: 394.3 kB / 0.5572 GB, free: 15.78 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005941/0.6488, allocations: 468.4 kB / 0.5577 GB, free: 15.78 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.663e-05/0.6489, allocations: 10.77 kB / 0.5577 GB, free: 15.78 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005074/0.6494, allocations: 255.2 kB / 0.5579 GB, free: 15.77 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002822/0.6497, allocations: 141.5 kB / 0.5581 GB, free: 15.77 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 6.485e-05/0.6497, allocations: 13.84 kB / 0.5581 GB, free: 15.77 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003568/0.6533, allocations: 1.838 MB / 0.5599 GB, free: 15.74 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001938/0.6535, allocations: 139.5 kB / 0.56 GB, free: 15.74 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002206/0.6537, allocations: 146.2 kB / 0.5601 GB, free: 15.74 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002329/0.656, allocations: 1.472 MB / 0.5616 GB, free: 15.69 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.237e-06/0.656, allocations: 0 / 0.5616 GB, free: 15.69 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.656, allocations: 2.344 kB / 0.5616 GB, free: 15.69 MB / 462.1 MB Notification: Performance of Transformations before backend: time 7.293e-06/0.656, allocations: 0 / 0.5616 GB, free: 15.69 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.002146/0.6582, allocations: 0.7155 MB / 0.5623 GB, free: 15.29 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.6582, allocations: 16.2 kB / 0.5623 GB, free: 15.28 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.908e-05/0.6583, allocations: 70.78 kB / 0.5624 GB, free: 15.24 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006804/0.659, allocations: 104.5 kB / 0.5625 GB, free: 15.23 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004828/0.6595, allocations: 217.8 kB / 0.5627 GB, free: 15.09 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.086e-05/0.6595, allocations: 23.06 kB / 0.5627 GB, free: 15.09 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.564e-05/0.6596, allocations: 22.72 kB / 0.5627 GB, free: 15.09 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001248/0.6608, allocations: 0.9046 MB / 0.5636 GB, free: 14.66 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.002e-05/0.6608, allocations: 0 / 0.5636 GB, free: 14.66 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.525e-05/0.6609, allocations: 9.125 kB / 0.5636 GB, free: 14.66 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.885e-05/0.6609, allocations: 28.25 kB / 0.5636 GB, free: 14.65 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001197/0.6621, allocations: 0.65 MB / 0.5643 GB, free: 14.64 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.00286/0.665, allocations: 1.178 MB / 0.5654 GB, free: 14.25 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009364/0.6659, allocations: 350.8 kB / 0.5657 GB, free: 14.2 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004266/0.6664, allocations: 175.9 kB / 0.5659 GB, free: 14.18 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001998/0.6684, allocations: 472.4 kB / 0.5664 GB, free: 14.16 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.759e-05/0.6684, allocations: 44.12 kB / 0.5664 GB, free: 14.11 MB / 462.1 MB Notification: Performance of pre-optimization done (n=35): time 2.004e-06/0.6684, allocations: 0 / 0.5664 GB, free: 14.11 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.01447/0.6829, allocations: 3.198 MB / 0.5695 GB, free: 13.33 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.808e-05/0.6829, allocations: 84.47 kB / 0.5696 GB, free: 13.24 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001656/0.6831, allocations: 189.5 kB / 0.5698 GB, free: 13.12 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.43e-05/0.6832, allocations: 34.17 kB / 0.5698 GB, free: 13.09 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001254/0.6833, allocations: 186.3 kB / 0.57 GB, free: 12.93 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001615/0.6834, allocations: 185.6 kB / 0.5702 GB, free: 12.82 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001918/0.6836, allocations: 114 kB / 0.5703 GB, free: 12.8 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.6838, allocations: 335.3 kB / 0.5706 GB, free: 12.49 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007058/0.6845, allocations: 269.2 kB / 0.5709 GB, free: 12.48 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008308/0.6853, allocations: 430.8 kB / 0.5713 GB, free: 12.3 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001531/0.6869, allocations: 0.6909 MB / 0.5719 GB, free: 12.11 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.6869, allocations: 0 / 0.5719 GB, free: 12.11 MB / 462.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001854/0.6887, allocations: 0.7903 MB / 0.5727 GB, free: 12.03 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.889e-05/0.6887, allocations: 8.406 kB / 0.5727 GB, free: 12.03 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.6887, allocations: 3.469 kB / 0.5727 GB, free: 12.03 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002232/0.689, allocations: 59.67 kB / 0.5728 GB, free: 12.01 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001147/0.6901, allocations: 174.4 kB / 0.573 GB, free: 12.01 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007714/0.6909, allocations: 1.079 MB / 0.574 GB, free: 10.98 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007892/0.6917, allocations: 46.61 kB / 0.5741 GB, free: 10.97 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.139e-05/0.6917, allocations: 38.3 kB / 0.5741 GB, free: 10.97 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.0002763/0.692, allocations: 174.9 kB / 0.5743 GB, free: 10.85 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001235/0.6921, allocations: 35.48 kB / 0.5743 GB, free: 10.84 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002177/0.6943, allocations: 0.7857 MB / 0.5751 GB, free: 10.74 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.328e-06/0.6943, allocations: 5.469 kB / 0.5751 GB, free: 10.74 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.6943, allocations: 3.5 kB / 0.5751 GB, free: 10.74 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.545e-06/0.6943, allocations: 1.922 kB / 0.5751 GB, free: 10.74 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003364/0.6977, allocations: 1.464 MB / 0.5765 GB, free: 10.16 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.391e-06/0.6977, allocations: 2.281 kB / 0.5765 GB, free: 10.16 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00105/0.6988, allocations: 152.2 kB / 0.5766 GB, free: 10.16 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001332/0.6989, allocations: 44.52 kB / 0.5767 GB, free: 10.14 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.907e-05/0.699, allocations: 28.27 kB / 0.5767 GB, free: 10.14 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001915/0.7009, allocations: 2.514 MB / 0.5792 GB, free: 7.699 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/0.7009, allocations: 6.734 kB / 0.5792 GB, free: 7.695 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002547/0.7034, allocations: 1.083 MB / 0.5802 GB, free: 7.383 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.214e-05/0.7035, allocations: 21 kB / 0.5803 GB, free: 7.371 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.283e-05/0.7036, allocations: 13.45 kB / 0.5803 GB, free: 7.371 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008165/0.7044, allocations: 38.64 kB / 0.5803 GB, free: 7.371 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.619e-05/0.7045, allocations: 51.69 kB / 0.5804 GB, free: 7.363 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.859e-05/0.7045, allocations: 31.98 kB / 0.5804 GB, free: 7.363 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0001032/0.7047, allocations: 133.5 kB / 0.5805 GB, free: 7.281 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.7047, allocations: 0 / 0.5805 GB, free: 7.281 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001447/0.7061, allocations: 394 kB / 0.5809 GB, free: 7.23 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.005492/0.7116, allocations: 2.373 MB / 0.5832 GB, free: 6.246 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001925/0.7135, allocations: 0.6396 MB / 0.5838 GB, free: 6.227 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.78e-06/0.7135, allocations: 0 / 0.5838 GB, free: 6.227 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001085/0.7146, allocations: 0.5223 MB / 0.5843 GB, free: 6 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007862/0.7154, allocations: 102.5 kB / 0.5844 GB, free: 5.984 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008192/0.7236, allocations: 4.26 MB / 0.5886 GB, free: 3.699 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002092/0.7238, allocations: 174.2 kB / 0.5888 GB, free: 3.582 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.000901/0.7247, allocations: 185.1 kB / 0.5889 GB, free: 3.473 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003835/0.7251, allocations: 127.1 kB / 0.5891 GB, free: 3.441 MB / 462.1 MB Notification: Performance of SimCode: time 1.082e-06/0.7251, allocations: 2.781 kB / 0.5891 GB, free: 3.441 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0598/0.7849, allocations: 20.98 MB / 0.6095 GB, free: 4.879 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.64/14.43, allocations: 7.984 kB / 0.6096 GB, free: 4.871 MB / 478.1 MB " [Timeout remaining time 645] (rm -f Modelica_trunk_Modelica.Media.Examples.MixtureGases.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.MixtureGases.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.MixtureGases.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.MixtureGases.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.MixtureGases_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_MixtureGases_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Media_Examples_MixtureGases.fmu > Modelica_trunk_Modelica.Media.Examples.MixtureGases.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.142729056999087]