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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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: translateModel(Modelica.Media.Examples.MixtureGases,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium1.T|medium1.p|medium2.T|medium2.p",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Media.Examples.MixtureGases") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001511/0.001511, allocations: 103.2 kB / 17.59 MB, free: 5.43 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001648/0.001648, allocations: 191.3 kB / 18.52 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.399/1.399, allocations: 222.9 MB / 242.2 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001084/0.001084, allocations: 50.58 kB / 301.3 MB, free: 5.895 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08671/0.08782, allocations: 49.44 MB / 350.7 MB, free: 4.441 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.3307/0.4186, allocations: 152.5 MB / 0.4914 GB, free: 12.47 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.004269/0.4229, allocations: 4.051 MB / 0.4954 GB, free: 8.422 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001157/0.423, allocations: 0 / 0.4954 GB, free: 8.422 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004118/0.4235, allocations: 103.4 kB / 0.4955 GB, free: 8.32 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002573/0.4261, allocations: 1.176 MB / 0.4966 GB, free: 7.141 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009939/0.4271, allocations: 386.5 kB / 0.497 GB, free: 6.766 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005888/0.4277, allocations: 454.9 kB / 0.4974 GB, free: 6.316 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.506e-05/0.4278, allocations: 13.56 kB / 0.4975 GB, free: 6.305 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000379/0.4282, allocations: 231 kB / 0.4977 GB, free: 6.078 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002074/0.4284, allocations: 139.5 kB / 0.4978 GB, free: 5.941 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.668e-05/0.4284, allocations: 12 kB / 0.4978 GB, free: 5.93 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003988/0.4324, allocations: 2.135 MB / 0.4999 GB, free: 3.789 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001642/0.4326, allocations: 135.7 kB / 0.5 GB, free: 3.656 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002317/0.4329, allocations: 167.3 kB / 0.5002 GB, free: 3.492 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002468/0.4353, allocations: 1.559 MB / 0.5017 GB, free: 1.93 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.4354, allocations: 0 / 0.5017 GB, free: 1.93 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.446e-06/0.4354, allocations: 0 / 0.5017 GB, free: 1.93 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.093e-06/0.4354, allocations: 3.938 kB / 0.5017 GB, free: 1.926 MB / 414.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.002121/0.4375, allocations: 0.7729 MB / 0.5025 GB, free: 1.105 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.702e-05/0.4375, allocations: 8.031 kB / 0.5025 GB, free: 1.098 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002549/0.4401, allocations: 264.8 kB / 0.5027 GB, free: 0.8398 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004006/0.4405, allocations: 287.5 kB / 0.503 GB, free: 0.5195 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.809e-05/0.4405, allocations: 20.5 kB / 0.503 GB, free: 0.5 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.18e-05/0.4406, allocations: 28 kB / 0.5031 GB, free: 484 kB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001373/0.442, allocations: 0.6705 MB / 0.5037 GB, free: 15.79 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.95e-05/0.442, allocations: 4 kB / 0.5037 GB, free: 15.78 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.477e-05/0.4421, allocations: 16 kB / 0.5037 GB, free: 15.77 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.353e-05/0.4422, allocations: 24.42 kB / 0.5038 GB, free: 15.74 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001695/0.4439, allocations: 0.7551 MB / 0.5045 GB, free: 14.99 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.004173/0.4481, allocations: 1.814 MB / 0.5063 GB, free: 13.08 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001361/0.4494, allocations: 492.2 kB / 0.5067 GB, free: 12.59 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006757/0.4501, allocations: 237.7 kB / 0.507 GB, free: 12.35 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002534/0.4527, allocations: 1.387 MB / 0.5083 GB, free: 10.74 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.935e-05/0.4527, allocations: 38.75 kB / 0.5083 GB, free: 10.69 MB / 430.1 MB Notification: Performance of pre-optimization done (n=35): time 3.046e-06/0.4527, allocations: 0 / 0.5083 GB, free: 10.69 MB / 430.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.01455/0.4673, allocations: 3.722 MB / 0.512 GB, free: 6.77 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.571e-05/0.4674, allocations: 89.05 kB / 0.5121 GB, free: 6.664 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001719/0.4676, allocations: 173.1 kB / 0.5122 GB, free: 6.488 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.008e-05/0.4676, allocations: 33.7 kB / 0.5123 GB, free: 6.449 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.4677, allocations: 180.1 kB / 0.5124 GB, free: 6.266 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001597/0.4679, allocations: 177.5 kB / 0.5126 GB, free: 6.09 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002149/0.4681, allocations: 114.3 kB / 0.5127 GB, free: 5.973 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001193/0.4683, allocations: 338.8 kB / 0.513 GB, free: 5.633 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007761/0.469, allocations: 261.1 kB / 0.5133 GB, free: 5.379 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008837/0.4699, allocations: 429.5 kB / 0.5137 GB, free: 4.891 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001715/0.4717, allocations: 0.6922 MB / 0.5144 GB, free: 4.133 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.4717, allocations: 0 / 0.5144 GB, free: 4.133 MB / 430.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002087/0.4738, allocations: 0.7878 MB / 0.5151 GB, free: 3.336 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.145e-05/0.4738, allocations: 4.625 kB / 0.5151 GB, free: 3.332 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.265e-05/0.4738, allocations: 8 kB / 0.5152 GB, free: 3.324 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000242/0.4741, allocations: 57.69 kB / 0.5152 GB, free: 3.262 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001216/0.4753, allocations: 179.7 kB / 0.5154 GB, free: 3.086 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007871/0.4761, allocations: 1.085 MB / 0.5164 GB, free: 1.949 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008204/0.4769, allocations: 44.14 kB / 0.5165 GB, free: 1.906 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.779e-05/0.477, allocations: 39.98 kB / 0.5165 GB, free: 1.867 MB / 430.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.0002643/0.4773, allocations: 173.6 kB / 0.5167 GB, free: 1.688 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001368/0.4774, allocations: 31.7 kB / 0.5167 GB, free: 1.656 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002365/0.4798, allocations: 0.7823 MB / 0.5175 GB, free: 0.8594 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/0.4798, allocations: 4 kB / 0.5175 GB, free: 0.8555 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.088e-05/0.4798, allocations: 8 kB / 0.5175 GB, free: 0.8477 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.297e-06/0.4799, allocations: 3.984 kB / 0.5175 GB, free: 0.8438 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003537/0.4834, allocations: 1.559 MB / 0.519 GB, free: 15.19 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.145e-06/0.4834, allocations: 4 kB / 0.519 GB, free: 15.19 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001171/0.4846, allocations: 152 kB / 0.5192 GB, free: 15.04 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001658/0.4848, allocations: 45.53 kB / 0.5192 GB, free: 14.99 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.358e-05/0.4849, allocations: 23.98 kB / 0.5192 GB, free: 14.96 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002066/0.487, allocations: 2.73 MB / 0.5219 GB, free: 11.96 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.637e-06/0.487, allocations: 8.016 kB / 0.5219 GB, free: 11.95 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002843/0.4898, allocations: 1.075 MB / 0.523 GB, free: 10.83 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000131/0.49, allocations: 100.9 kB / 0.5231 GB, free: 10.71 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001072/0.4901, allocations: 20 kB / 0.5231 GB, free: 10.69 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008786/0.491, allocations: 39.95 kB / 0.5231 GB, free: 10.65 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.316e-05/0.4911, allocations: 43.89 kB / 0.5231 GB, free: 10.61 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.691e-05/0.4912, allocations: 35.91 kB / 0.5232 GB, free: 10.57 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001023/0.4913, allocations: 123.2 kB / 0.5233 GB, free: 10.45 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4913, allocations: 0 / 0.5233 GB, free: 10.45 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001446/0.4927, allocations: 391.8 kB / 0.5237 GB, free: 10.07 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.003067/0.4958, allocations: 0.8654 MB / 0.5245 GB, free: 9.195 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002228/0.4981, allocations: 0.6908 MB / 0.5252 GB, free: 8.504 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.622e-06/0.4981, allocations: 0 / 0.5252 GB, free: 8.504 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00119/0.4993, allocations: 0.5287 MB / 0.5257 GB, free: 7.949 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008727/0.5002, allocations: 95.59 kB / 0.5258 GB, free: 7.859 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002301/0.5025, allocations: 1.03 MB / 0.5268 GB, free: 6.773 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004125/0.5029, allocations: 0.7774 MB / 0.5276 GB, free: 5.969 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000431/0.5034, allocations: 75.38 kB / 0.5276 GB, free: 5.895 MB / 446.1 MB Notification: Performance of SimCode: time 7.71e-07/0.5034, allocations: 4 kB / 0.5276 GB, free: 5.891 MB / 446.1 MB Notification: Performance of Templates: time 0.1848/0.6882, allocations: 14.61 MB / 0.5419 GB, free: 163.6 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.makefile (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 & ./Modelica_4.0.0_Modelica.Media.Examples.MixtureGases -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe 2>&1) 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) Reference file matches