Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Media.Examples.MixtureGases") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00152/0.00152, allocations: 179.7 kB / 16.41 MB, free: 5.68 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.244/1.244, allocations: 205.4 MB / 222.5 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007069/0.0007069, allocations: 85.02 kB / 270.9 MB, free: 8.344 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004325/0.0004326, allocations: 12 kB / 327 MB, free: 188 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2643/0.2648, allocations: 47.56 MB / 374.5 MB, free: 45.33 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.3476/0.6124, allocations: 140 MB / 0.5024 GB, free: 1.516 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002827/0.6153, allocations: 2.834 MB / 0.5052 GB, free: 1.465 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001355/0.6154, allocations: 0 / 0.5052 GB, free: 1.465 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003107/0.6157, allocations: 70.77 kB / 0.5053 GB, free: 1.465 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001954/0.6177, allocations: 0.799 MB / 0.5061 GB, free: 1.438 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007653/0.6185, allocations: 288.2 kB / 0.5063 GB, free: 1.426 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006172/0.6191, allocations: 0.521 MB / 0.5068 GB, free: 1.418 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.459e-05/0.6192, allocations: 12.78 kB / 0.5069 GB, free: 1.418 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004034/0.6196, allocations: 208.5 kB / 0.5071 GB, free: 1.414 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002647/0.6199, allocations: 167 kB / 0.5072 GB, free: 1.414 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.074e-05/0.6199, allocations: 11.53 kB / 0.5072 GB, free: 1.414 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002819/0.6228, allocations: 1.57 MB / 0.5088 GB, free: 1.398 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001366/0.6229, allocations: 138.4 kB / 0.5089 GB, free: 1.398 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001068/0.623, allocations: 88.36 kB / 0.509 GB, free: 1.363 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001428/0.6245, allocations: 0.9106 MB / 0.5099 GB, free: 1.32 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.6245, allocations: 0.5 kB / 0.5099 GB, free: 1.32 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.6245, allocations: 0 / 0.5099 GB, free: 1.32 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.152e-05/0.6245, allocations: 2.844 kB / 0.5099 GB, free: 1.32 MB / 378.7 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.002248/0.6268, allocations: 0.6995 MB / 0.5105 GB, free: 16.84 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.263e-05/0.6268, allocations: 11.19 kB / 0.5106 GB, free: 16.84 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002251/0.629, allocations: 260.6 kB / 0.5108 GB, free: 16.83 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004114/0.6295, allocations: 295.7 kB / 0.5111 GB, free: 16.61 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.831e-05/0.6295, allocations: 18.25 kB / 0.5111 GB, free: 16.61 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.407e-05/0.6296, allocations: 28.69 kB / 0.5111 GB, free: 16.61 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001205/0.6308, allocations: 0.6716 MB / 0.5118 GB, free: 16.55 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.423e-05/0.6308, allocations: 0 / 0.5118 GB, free: 16.55 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.258e-05/0.6309, allocations: 14.47 kB / 0.5118 GB, free: 16.55 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.788e-05/0.6309, allocations: 18.05 kB / 0.5118 GB, free: 16.55 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001585/0.6325, allocations: 0.754 MB / 0.5126 GB, free: 16.54 MB / 394.7 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.003748/0.6363, allocations: 1.809 MB / 0.5143 GB, free: 15.71 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001333/0.6376, allocations: 484.1 kB / 0.5148 GB, free: 15.65 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006201/0.6383, allocations: 239.5 kB / 0.515 GB, free: 15.62 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002519/0.6408, allocations: 1.372 MB / 0.5164 GB, free: 14.49 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.903e-05/0.6408, allocations: 39.53 kB / 0.5164 GB, free: 14.45 MB / 394.7 MB Notification: Performance of pre-optimization done (n=35): time 2.004e-06/0.6408, allocations: 4 kB / 0.5164 GB, free: 14.45 MB / 394.7 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.01335/0.6542, allocations: 3.65 MB / 0.52 GB, free: 13.28 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.316e-05/0.6543, allocations: 82.92 kB / 0.52 GB, free: 13.19 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000135/0.6544, allocations: 180.8 kB / 0.5202 GB, free: 13.08 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.342e-05/0.6545, allocations: 35.36 kB / 0.5202 GB, free: 13.05 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.262e-05/0.6546, allocations: 173.9 kB / 0.5204 GB, free: 12.91 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001329/0.6547, allocations: 174.6 kB / 0.5206 GB, free: 12.8 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.709e-05/0.6548, allocations: 11.25 kB / 0.5206 GB, free: 12.8 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.6549, allocations: 337.5 kB / 0.5209 GB, free: 12.48 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000693/0.6556, allocations: 262.7 kB / 0.5212 GB, free: 12.48 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000771/0.6564, allocations: 429 kB / 0.5216 GB, free: 12.29 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007363/0.6571, allocations: 308.2 kB / 0.5219 GB, free: 12.28 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.6571, allocations: 0 / 0.5219 GB, free: 12.28 MB / 394.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001795/0.6589, allocations: 0.7834 MB / 0.5226 GB, free: 12.2 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.659, allocations: 6.031 kB / 0.5226 GB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.786e-06/0.659, allocations: 9.531 kB / 0.5226 GB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001826/0.6592, allocations: 56.14 kB / 0.5227 GB, free: 12.18 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001104/0.6603, allocations: 176.1 kB / 0.5229 GB, free: 12.18 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006382/0.6609, allocations: 1.082 MB / 0.5239 GB, free: 11.14 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007882/0.6617, allocations: 53.36 kB / 0.524 GB, free: 11.13 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.787e-05/0.6618, allocations: 37.88 kB / 0.524 GB, free: 11.13 MB / 394.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.000231/0.662, allocations: 174.1 kB / 0.5242 GB, free: 11.01 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000103/0.6621, allocations: 28.75 kB / 0.5242 GB, free: 11 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002047/0.6642, allocations: 0.7784 MB / 0.525 GB, free: 10.9 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.064e-06/0.6642, allocations: 12.88 kB / 0.525 GB, free: 10.89 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/0.6642, allocations: 0 / 0.525 GB, free: 10.89 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.6642, allocations: 4.438 kB / 0.525 GB, free: 10.89 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002968/0.6672, allocations: 1.54 MB / 0.5265 GB, free: 10.31 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.6672, allocations: 4.969 kB / 0.5265 GB, free: 10.31 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001052/0.6683, allocations: 157.8 kB / 0.5266 GB, free: 10.27 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001117/0.6684, allocations: 45.44 kB / 0.5267 GB, free: 10.25 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.001e-05/0.6685, allocations: 27.84 kB / 0.5267 GB, free: 10.24 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001657/0.6702, allocations: 2.535 MB / 0.5292 GB, free: 7.68 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.6702, allocations: 3.531 kB / 0.5292 GB, free: 7.68 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002365/0.6725, allocations: 1.071 MB / 0.5302 GB, free: 7.219 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.384e-05/0.6726, allocations: 98.2 kB / 0.5303 GB, free: 7.113 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.291e-05/0.6727, allocations: 12.72 kB / 0.5303 GB, free: 7.113 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008159/0.6735, allocations: 40.66 kB / 0.5304 GB, free: 7.098 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.999e-05/0.6736, allocations: 46.41 kB / 0.5304 GB, free: 7.082 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.902e-05/0.6737, allocations: 36.23 kB / 0.5305 GB, free: 7.07 MB / 394.7 MB Notification: Performance of sorting global known variables: time 9.203e-05/0.6738, allocations: 125.9 kB / 0.5306 GB, free: 6.984 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.6738, allocations: 0 / 0.5306 GB, free: 6.984 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001506/0.6753, allocations: 385.1 kB / 0.5309 GB, free: 6.926 MB / 394.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002583/0.6779, allocations: 0.6668 MB / 0.5316 GB, free: 6.621 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00169/0.6796, allocations: 0.6457 MB / 0.5322 GB, free: 6.496 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.6796, allocations: 2.844 kB / 0.5322 GB, free: 6.496 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009785/0.6806, allocations: 0.5246 MB / 0.5327 GB, free: 6.219 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007212/0.6813, allocations: 101.2 kB / 0.5328 GB, free: 6.188 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002069/0.6834, allocations: 1.225 MB / 0.534 GB, free: 5.352 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003374/0.6837, allocations: 0.7816 MB / 0.5348 GB, free: 4.621 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004103/0.6842, allocations: 75.09 kB / 0.5349 GB, free: 4.594 MB / 394.7 MB Notification: Performance of SimCode: time 8.82e-07/0.6842, allocations: 0 / 0.5349 GB, free: 4.594 MB / 394.7 MB Notification: Performance of Templates: time 0.01839/0.7026, allocations: 14.3 MB / 0.5488 GB, free: 12.2 MB / 410.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.sim & ./Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/MixtureGases/MixtureGases.csv","../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches