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.001478/0.001478, allocations: 108.6 kB / 18.49 MB, free: 4.543 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.001482/0.001482, allocations: 197 kB / 21.43 MB, free: 1.609 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.372/1.372, allocations: 225.6 MB / 249.8 MB, free: 3.621 MB / 190.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="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.001495/0.001495, allocations: 47.94 kB / 366.3 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09424/0.09573, allocations: 52.15 MB / 418.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.3497/0.4454, allocations: 153 MB / 0.5581 GB, free: 13.41 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.005153/0.4505, allocations: 4.04 MB / 0.562 GB, free: 9.367 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001608/0.4507, allocations: 5.906 kB / 0.562 GB, free: 9.363 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004759/0.4512, allocations: 111.4 kB / 0.5621 GB, free: 9.254 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002841/0.454, allocations: 1.194 MB / 0.5633 GB, free: 8.059 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001033/0.4551, allocations: 385.9 kB / 0.5636 GB, free: 7.684 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.000699/0.4558, allocations: 458.8 kB / 0.5641 GB, free: 7.234 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.827e-05/0.4558, allocations: 9.547 kB / 0.5641 GB, free: 7.227 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004593/0.4563, allocations: 227.1 kB / 0.5643 GB, free: 7.004 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002658/0.4565, allocations: 151.5 kB / 0.5645 GB, free: 6.855 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.134e-05/0.4566, allocations: 16 kB / 0.5645 GB, free: 6.84 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00408/0.4607, allocations: 2.166 MB / 0.5666 GB, free: 4.668 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001833/0.4608, allocations: 139.7 kB / 0.5667 GB, free: 4.531 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000226/0.4611, allocations: 159.4 kB / 0.5669 GB, free: 4.375 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002846/0.4639, allocations: 1.539 MB / 0.5684 GB, free: 2.832 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.4639, allocations: 8 kB / 0.5684 GB, free: 2.824 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.4639, allocations: 0 / 0.5684 GB, free: 2.824 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.129e-05/0.4639, allocations: 0 / 0.5684 GB, free: 2.824 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.002376/0.4663, allocations: 0.775 MB / 0.5691 GB, free: 1.996 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.4664, allocations: 8.031 kB / 0.5691 GB, free: 1.988 MB / 462.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.418e-05/0.4664, allocations: 8.75 kB / 0.5692 GB, free: 1.98 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000101/0.4665, allocations: 66.72 kB / 0.5692 GB, free: 1.906 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007919/0.4673, allocations: 117 kB / 0.5693 GB, free: 1.793 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004624/0.4677, allocations: 286.5 kB / 0.5696 GB, free: 1.473 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.503e-05/0.4678, allocations: 16.56 kB / 0.5696 GB, free: 1.457 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.672e-05/0.4678, allocations: 32.64 kB / 0.5697 GB, free: 1.426 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001195/0.469, allocations: 0.5848 MB / 0.5702 GB, free: 0.832 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.772e-05/0.469, allocations: 4 kB / 0.5702 GB, free: 0.8281 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.306e-05/0.4691, allocations: 12 kB / 0.5702 GB, free: 0.8164 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.912e-05/0.4692, allocations: 28.36 kB / 0.5703 GB, free: 0.7891 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001452/0.4706, allocations: 0.6386 MB / 0.5709 GB, free: 156 kB / 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.003259/0.4739, allocations: 1.28 MB / 0.5721 GB, free: 14.82 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001062/0.4749, allocations: 347.3 kB / 0.5725 GB, free: 14.46 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005006/0.4754, allocations: 170.5 kB / 0.5726 GB, free: 14.29 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002688/0.4781, allocations: 1.391 MB / 0.574 GB, free: 12.68 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.9e-05/0.4782, allocations: 34.97 kB / 0.574 GB, free: 12.63 MB / 478.1 MB Notification: Performance of pre-optimization done (n=35): time 2.335e-06/0.4782, allocations: 0 / 0.574 GB, free: 12.63 MB / 478.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.01626/0.4944, allocations: 3.492 MB / 0.5774 GB, free: 8.945 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.524e-05/0.4945, allocations: 89.05 kB / 0.5775 GB, free: 8.84 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001985/0.4947, allocations: 184.9 kB / 0.5777 GB, free: 8.648 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 8.535e-05/0.4948, allocations: 33.7 kB / 0.5777 GB, free: 8.609 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001306/0.4949, allocations: 176.6 kB / 0.5779 GB, free: 8.43 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001891/0.4951, allocations: 182.4 kB / 0.5781 GB, free: 8.25 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002406/0.4953, allocations: 118.2 kB / 0.5782 GB, free: 8.125 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.4955, allocations: 338.8 kB / 0.5785 GB, free: 7.785 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008208/0.4963, allocations: 265.1 kB / 0.5788 GB, free: 7.527 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009519/0.4972, allocations: 425.5 kB / 0.5792 GB, free: 7.043 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00189/0.4991, allocations: 0.6973 MB / 0.5798 GB, free: 6.281 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.4991, allocations: 7.938 kB / 0.5799 GB, free: 6.273 MB / 478.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002221/0.5014, allocations: 0.7768 MB / 0.5806 GB, free: 5.484 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.429e-05/0.5014, allocations: 10.03 kB / 0.5806 GB, free: 5.477 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/0.5014, allocations: 4 kB / 0.5806 GB, free: 5.473 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002352/0.5016, allocations: 58.16 kB / 0.5807 GB, free: 5.41 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001243/0.5029, allocations: 187.7 kB / 0.5809 GB, free: 5.227 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008349/0.5037, allocations: 1.074 MB / 0.5819 GB, free: 4.102 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008183/0.5045, allocations: 52.77 kB / 0.582 GB, free: 4.051 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.49e-05/0.5046, allocations: 39.97 kB / 0.582 GB, free: 4.012 MB / 478.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.0002829/0.5049, allocations: 169.7 kB / 0.5822 GB, free: 3.836 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001502/0.5051, allocations: 27.86 kB / 0.5822 GB, free: 3.809 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002434/0.5075, allocations: 0.7862 MB / 0.583 GB, free: 3.008 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.238e-05/0.5075, allocations: 11.98 kB / 0.583 GB, free: 2.996 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.5075, allocations: 3.938 kB / 0.583 GB, free: 2.992 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.5075, allocations: 0 / 0.583 GB, free: 2.992 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003611/0.5111, allocations: 1.551 MB / 0.5845 GB, free: 1.352 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-05/0.5111, allocations: 16.83 kB / 0.5845 GB, free: 1.336 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00114/0.5123, allocations: 143.8 kB / 0.5846 GB, free: 1.195 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001535/0.5124, allocations: 41.69 kB / 0.5847 GB, free: 1.148 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.294e-05/0.5125, allocations: 27.91 kB / 0.5847 GB, free: 1.121 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002238/0.5147, allocations: 2.731 MB / 0.5874 GB, free: 14.11 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-05/0.5148, allocations: 7.938 kB / 0.5874 GB, free: 14.1 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002923/0.5177, allocations: 1.076 MB / 0.5884 GB, free: 12.98 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001135/0.5178, allocations: 96.97 kB / 0.5885 GB, free: 12.87 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.475e-05/0.5179, allocations: 16 kB / 0.5885 GB, free: 12.85 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008873/0.5188, allocations: 39.95 kB / 0.5886 GB, free: 12.81 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.54e-05/0.5189, allocations: 47.81 kB / 0.5886 GB, free: 12.77 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.856e-05/0.5189, allocations: 39.91 kB / 0.5887 GB, free: 12.73 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001222/0.5191, allocations: 124.4 kB / 0.5888 GB, free: 12.61 MB / 494.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5191, allocations: 0 / 0.5888 GB, free: 12.61 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001432/0.5205, allocations: 391.2 kB / 0.5892 GB, free: 12.22 MB / 494.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.005799/0.5263, allocations: 2.373 MB / 0.5915 GB, free: 9.793 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002158/0.5285, allocations: 0.6365 MB / 0.5921 GB, free: 9.16 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/0.5285, allocations: 0 / 0.5921 GB, free: 9.16 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001221/0.5297, allocations: 0.5224 MB / 0.5926 GB, free: 8.613 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008397/0.5305, allocations: 100.9 kB / 0.5927 GB, free: 8.516 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009059/0.5396, allocations: 4.257 MB / 0.5969 GB, free: 4 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004727/0.54, allocations: 0.7813 MB / 0.5976 GB, free: 3.195 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0008396/0.5409, allocations: 187.1 kB / 0.5978 GB, free: 3.012 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004207/0.5413, allocations: 127.4 kB / 0.5979 GB, free: 2.887 MB / 494.1 MB Notification: Performance of SimCode: time 7.22e-07/0.5413, allocations: 0 / 0.5979 GB, free: 2.887 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05194/0.5933, allocations: 19.73 MB / 0.6172 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.96/13.55, allocations: 4.062 kB / 0.6172 GB, free: 15.27 MB / 0.5137 GB " [Timeout remaining time 646] (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: 16.413468046986964]