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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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: translateModel(Modelica.Media.Examples.MixtureGases,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium1.T|medium1.p|medium2.T|medium2.p",fileNamePrefix="Modelica_trunk_Modelica.Media.Examples.MixtureGases") translateModel(Modelica.Media.Examples.MixtureGases,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium1.T|medium1.p|medium2.T|medium2.p",fileNamePrefix="Modelica_trunk_Modelica.Media.Examples.MixtureGases") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001529/0.001529, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001856/0.001856, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 227.4 MB / 247.5 MB, free: 10.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001167, allocations: 59.75 kB / 308.4 MB, free: 15.8 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0828/0.08398, allocations: 50.53 MB / 358.9 MB, free: 13.26 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.2916/0.3756, allocations: 155.4 MB / 0.5022 GB, free: 15.29 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003932/0.3796, allocations: 4.044 MB / 0.5062 GB, free: 11.25 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.375e-05/0.3797, allocations: 4 kB / 0.5062 GB, free: 11.25 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003927/0.3801, allocations: 107.4 kB / 0.5063 GB, free: 11.14 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00245/0.3826, allocations: 1.171 MB / 0.5074 GB, free: 9.969 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001009/0.3836, allocations: 397.7 kB / 0.5078 GB, free: 9.586 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006107/0.3842, allocations: 458.8 kB / 0.5083 GB, free: 9.137 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.933e-05/0.3843, allocations: 13.56 kB / 0.5083 GB, free: 9.125 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004289/0.3847, allocations: 247 kB / 0.5085 GB, free: 8.883 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001926/0.3849, allocations: 139.5 kB / 0.5086 GB, free: 8.746 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 3.405e-05/0.385, allocations: 16 kB / 0.5086 GB, free: 8.73 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003707/0.3887, allocations: 2.07 MB / 0.5107 GB, free: 6.656 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001492/0.3888, allocations: 127.7 kB / 0.5108 GB, free: 6.531 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001939/0.389, allocations: 163.4 kB / 0.5109 GB, free: 6.371 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002193/0.3912, allocations: 1.551 MB / 0.5125 GB, free: 4.816 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.3913, allocations: 0 / 0.5125 GB, free: 4.816 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3913, allocations: 0 / 0.5125 GB, free: 4.816 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.028e-05/0.3913, allocations: 3.938 kB / 0.5125 GB, free: 4.812 MB / 430.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.002195/0.3935, allocations: 0.7729 MB / 0.5132 GB, free: 3.992 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.158e-05/0.3935, allocations: 12.03 kB / 0.5132 GB, free: 3.98 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007493/0.3943, allocations: 104.6 kB / 0.5133 GB, free: 3.879 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000499/0.3948, allocations: 288.2 kB / 0.5136 GB, free: 3.559 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.022e-05/0.3948, allocations: 20.56 kB / 0.5136 GB, free: 3.539 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.334e-05/0.3949, allocations: 24 kB / 0.5137 GB, free: 3.516 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00107/0.396, allocations: 0.5964 MB / 0.5142 GB, free: 2.906 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.646e-05/0.396, allocations: 0 / 0.5142 GB, free: 2.906 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.622e-05/0.3961, allocations: 16 kB / 0.5142 GB, free: 2.891 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.404e-05/0.3961, allocations: 28.3 kB / 0.5143 GB, free: 2.863 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001257/0.3974, allocations: 0.6341 MB / 0.5149 GB, free: 2.223 MB / 430.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.002992/0.4004, allocations: 1.275 MB / 0.5161 GB, free: 0.8945 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009358/0.4013, allocations: 356.7 kB / 0.5165 GB, free: 0.5273 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004309/0.4018, allocations: 178.4 kB / 0.5166 GB, free: 356 kB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002332/0.4041, allocations: 1.36 MB / 0.518 GB, free: 14.77 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.836e-05/0.4042, allocations: 38.75 kB / 0.518 GB, free: 14.72 MB / 446.1 MB Notification: Performance of pre-optimization done (n=35): time 1.933e-06/0.4042, allocations: 0 / 0.518 GB, free: 14.72 MB / 446.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.01448/0.4187, allocations: 3.503 MB / 0.5214 GB, free: 11.02 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.198e-05/0.4187, allocations: 81.11 kB / 0.5215 GB, free: 10.93 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000153/0.4189, allocations: 180.9 kB / 0.5217 GB, free: 10.74 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.087e-05/0.419, allocations: 37.7 kB / 0.5217 GB, free: 10.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001008/0.4191, allocations: 176.1 kB / 0.5219 GB, free: 10.52 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001478/0.4192, allocations: 177.5 kB / 0.5221 GB, free: 10.35 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002135/0.4194, allocations: 110.3 kB / 0.5222 GB, free: 10.23 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.4196, allocations: 346.7 kB / 0.5225 GB, free: 9.887 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007258/0.4203, allocations: 265.1 kB / 0.5227 GB, free: 9.629 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008478/0.4212, allocations: 421.5 kB / 0.5231 GB, free: 9.148 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001537/0.4227, allocations: 0.7005 MB / 0.5238 GB, free: 8.383 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.4227, allocations: 0 / 0.5238 GB, free: 8.383 MB / 446.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00194/0.4247, allocations: 0.7936 MB / 0.5246 GB, free: 7.582 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.125e-05/0.4247, allocations: 8 kB / 0.5246 GB, free: 7.574 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.4247, allocations: 4 kB / 0.5246 GB, free: 7.57 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002173/0.425, allocations: 49.69 kB / 0.5247 GB, free: 7.516 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001176/0.4261, allocations: 187.8 kB / 0.5248 GB, free: 7.332 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006418/0.4268, allocations: 1.073 MB / 0.5259 GB, free: 6.207 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007508/0.4276, allocations: 52.14 kB / 0.5259 GB, free: 6.156 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.87e-05/0.4276, allocations: 35.98 kB / 0.526 GB, free: 6.121 MB / 446.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.0002385/0.4279, allocations: 169.6 kB / 0.5261 GB, free: 5.945 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001293/0.428, allocations: 27.72 kB / 0.5262 GB, free: 5.918 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002144/0.4302, allocations: 0.7928 MB / 0.5269 GB, free: 5.113 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.385e-06/0.4302, allocations: 15.94 kB / 0.527 GB, free: 5.098 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.4302, allocations: 0 / 0.527 GB, free: 5.098 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.4302, allocations: 3.984 kB / 0.527 GB, free: 5.094 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003252/0.4335, allocations: 1.551 MB / 0.5285 GB, free: 3.445 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.4335, allocations: 0 / 0.5285 GB, free: 3.445 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001083/0.4346, allocations: 144 kB / 0.5286 GB, free: 3.305 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001385/0.4347, allocations: 54.34 kB / 0.5287 GB, free: 3.246 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.699e-05/0.4348, allocations: 27.97 kB / 0.5287 GB, free: 3.219 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001709/0.4365, allocations: 2.723 MB / 0.5313 GB, free: 224 kB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.611e-06/0.4365, allocations: 7.969 kB / 0.5314 GB, free: 216 kB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1421/0.5787, allocations: 1.076 MB / 0.5324 GB, free: 160.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.867e-05/0.5788, allocations: 106.3 kB / 0.5325 GB, free: 160.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.78e-05/0.5789, allocations: 15.3 kB / 0.5325 GB, free: 160.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000848/0.5797, allocations: 35.55 kB / 0.5326 GB, free: 160.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.99e-05/0.5798, allocations: 45.33 kB / 0.5326 GB, free: 160.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.912e-05/0.5799, allocations: 33.83 kB / 0.5326 GB, free: 160.3 MB / 446.1 MB Notification: Performance of sorting global known variables: time 8.449e-05/0.58, allocations: 130.5 kB / 0.5328 GB, free: 160.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.58, allocations: 0 / 0.5328 GB, free: 160.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001342/0.5814, allocations: 385.8 kB / 0.5331 GB, free: 160.2 MB / 446.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.002435/0.5838, allocations: 0.8573 MB / 0.534 GB, free: 160.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001847/0.5857, allocations: 0.6507 MB / 0.5346 GB, free: 160.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.5857, allocations: 1.797 kB / 0.5346 GB, free: 160.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000992/0.5867, allocations: 0.5398 MB / 0.5351 GB, free: 159.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007259/0.5874, allocations: 92.7 kB / 0.5352 GB, free: 159.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001844/0.5893, allocations: 0.9914 MB / 0.5362 GB, free: 159.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002286/0.5895, allocations: 0.7902 MB / 0.537 GB, free: 158.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000793/0.5903, allocations: 190.5 kB / 0.5371 GB, free: 158.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000314/0.5906, allocations: 59.2 kB / 0.5372 GB, free: 158.7 MB / 446.1 MB Notification: Performance of SimCode: time 2.9e-07/0.5906, allocations: 1.406 kB / 0.5372 GB, free: 158.7 MB / 446.1 MB Notification: Performance of Templates: time 0.02387/0.6145, allocations: 16.28 MB / 0.5531 GB, free: 152.8 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Media.Examples.MixtureGases.makefile (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 & ./Modelica_trunk_Modelica.Media.Examples.MixtureGases -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.MixtureGases.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Media.Examples.MixtureGases.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches