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: "" <> buildModelFMU(Modelica.Media.Examples.MixtureGases,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_MixtureGases",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.MixtureGases,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_MixtureGases",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001128/0.001128, allocations: 94.28 kB / 16.3 MB, free: 5.992 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.001621/0.001621, allocations: 184.4 kB / 17.2 MB, free: 5.914 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.365/1.365, allocations: 223.2 MB / 241.1 MB, free: 5.457 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000276/0.000276, allocations: 6.469 kB / 300.8 MB, free: 6.023 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0958/0.09609, allocations: 50.42 MB / 351.2 MB, free: 11.65 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.4123/0.5085, allocations: 127.6 MB / 478.8 MB, free: 10.67 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003584/0.5121, allocations: 3.39 MB / 482.2 MB, free: 10.12 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001538/0.5123, allocations: 2.844 kB / 482.2 MB, free: 10.12 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003751/0.5127, allocations: 80.55 kB / 482.3 MB, free: 10.09 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002299/0.515, allocations: 0.7897 MB / 483.1 MB, free: 9.848 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009096/0.5159, allocations: 295.8 kB / 483.4 MB, free: 9.777 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004951/0.5164, allocations: 278.2 kB / 483.7 MB, free: 9.723 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.465e-05/0.5165, allocations: 20.47 kB / 483.7 MB, free: 9.715 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005565/0.517, allocations: 288.5 kB / 484 MB, free: 9.629 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001846/0.5172, allocations: 111.7 kB / 484.1 MB, free: 9.594 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.296e-05/0.5173, allocations: 18.09 kB / 484.1 MB, free: 9.586 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004258/0.5215, allocations: 1.609 MB / 485.7 MB, free: 9.199 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000154/0.5217, allocations: 120.4 kB / 485.8 MB, free: 9.156 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001152/0.5219, allocations: 82.61 kB / 485.9 MB, free: 9.117 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001492/0.5233, allocations: 0.864 MB / 486.8 MB, free: 8.801 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.906e-06/0.5234, allocations: 0 / 486.8 MB, free: 8.801 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.5234, allocations: 4 kB / 486.8 MB, free: 8.797 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.536e-06/0.5234, allocations: 0 / 486.8 MB, free: 8.797 MB / 366.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.001912/0.5253, allocations: 0.7151 MB / 487.5 MB, free: 8.234 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.5254, allocations: 7.469 kB / 487.5 MB, free: 8.234 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.79e-05/0.5255, allocations: 72.84 kB / 487.6 MB, free: 8.188 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007021/0.5262, allocations: 110.5 kB / 487.7 MB, free: 8.145 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003825/0.5266, allocations: 268.5 kB / 487.9 MB, free: 7.898 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.097e-05/0.5266, allocations: 23.05 kB / 487.9 MB, free: 7.898 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.415e-05/0.5267, allocations: 25.56 kB / 488 MB, free: 7.898 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001019/0.5277, allocations: 0.5903 MB / 488.6 MB, free: 7.703 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.582e-05/0.5277, allocations: 4 kB / 488.6 MB, free: 7.699 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.786e-05/0.5278, allocations: 12.97 kB / 488.6 MB, free: 7.699 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.372e-05/0.5278, allocations: 23.33 kB / 488.6 MB, free: 7.695 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001138/0.529, allocations: 0.6391 MB / 489.2 MB, free: 7.578 MB / 366.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.002693/0.5317, allocations: 1.245 MB / 490.5 MB, free: 6.914 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008745/0.5326, allocations: 364.7 kB / 490.8 MB, free: 6.793 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001477/0.5341, allocations: 0.9356 MB / 491.8 MB, free: 5.961 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.738e-05/0.5341, allocations: 37.88 kB / 491.8 MB, free: 5.922 MB / 366.1 MB Notification: Performance of pre-optimization done (n=35): time 2.535e-06/0.5341, allocations: 0 / 491.8 MB, free: 5.922 MB / 366.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.5486, allocations: 3.484 MB / 495.3 MB, free: 4.188 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.335e-05/0.5487, allocations: 89.91 kB / 495.4 MB, free: 4.086 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001416/0.5488, allocations: 181.6 kB / 495.6 MB, free: 3.961 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.106e-05/0.5489, allocations: 33.83 kB / 495.6 MB, free: 3.93 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.97e-05/0.549, allocations: 180.3 kB / 495.8 MB, free: 3.77 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001273/0.5491, allocations: 175.5 kB / 495.9 MB, free: 3.645 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.571e-05/0.5492, allocations: 13.97 kB / 496 MB, free: 3.645 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001024/0.5493, allocations: 333.4 kB / 496.3 MB, free: 3.324 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006851/0.55, allocations: 265.1 kB / 496.5 MB, free: 3.266 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007488/0.5507, allocations: 416.5 kB / 496.9 MB, free: 3.031 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007491/0.5515, allocations: 311 kB / 497.3 MB, free: 2.98 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.5515, allocations: 0 / 497.3 MB, free: 2.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001784/0.5533, allocations: 0.7765 MB / 498 MB, free: 2.777 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.116e-05/0.5533, allocations: 8.281 kB / 498 MB, free: 2.777 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.125e-05/0.5533, allocations: 8.906 kB / 498 MB, free: 2.773 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000193/0.5535, allocations: 52.69 kB / 498.1 MB, free: 2.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001123/0.5546, allocations: 182.8 kB / 498.3 MB, free: 2.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005856/0.5552, allocations: 1.088 MB / 499.4 MB, free: 1.473 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000811/0.5561, allocations: 40.39 kB / 499.4 MB, free: 1.441 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.088e-05/0.5562, allocations: 37.55 kB / 499.4 MB, free: 1.41 MB / 366.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 (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.000245/0.5564, allocations: 176.4 kB / 499.6 MB, free: 1.254 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001046/0.5565, allocations: 39.73 kB / 499.7 MB, free: 1.215 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002136/0.5587, allocations: 0.7765 MB / 0.4887 GB, free: 0.6328 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.997e-06/0.5587, allocations: 11.94 kB / 0.4887 GB, free: 0.6211 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.205e-06/0.5587, allocations: 0 / 0.4887 GB, free: 0.6211 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.918e-06/0.5587, allocations: 7.938 kB / 0.4887 GB, free: 0.6133 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003055/0.5618, allocations: 1.555 MB / 0.4902 GB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.643e-06/0.5618, allocations: 4 kB / 0.4902 GB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001015/0.5628, allocations: 147.1 kB / 0.4904 GB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001333/0.563, allocations: 41.05 kB / 0.4904 GB, free: 15.1 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.083e-05/0.563, allocations: 28.78 kB / 0.4904 GB, free: 15.08 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001719/0.5648, allocations: 2.545 MB / 0.4929 GB, free: 12.37 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.04e-06/0.5648, allocations: 7.938 kB / 0.4929 GB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002459/0.5672, allocations: 1.16 MB / 0.4941 GB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.806e-05/0.5674, allocations: 100.9 kB / 0.4942 GB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.18e-05/0.5674, allocations: 13.88 kB / 0.4942 GB, free: 11.22 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007745/0.5682, allocations: 37.7 kB / 0.4942 GB, free: 11.19 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.014e-05/0.5683, allocations: 47.09 kB / 0.4943 GB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.2e-05/0.5684, allocations: 36.66 kB / 0.4943 GB, free: 11.12 MB / 382.1 MB Notification: Performance of sorting global known variables: time 9.037e-05/0.5685, allocations: 128.9 kB / 0.4944 GB, free: 11 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5685, allocations: 0 / 0.4944 GB, free: 11 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001443/0.5699, allocations: 374.9 kB / 0.4948 GB, free: 10.66 MB / 382.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 (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.005161/0.5751, allocations: 2.82 MB / 0.4975 GB, free: 8.039 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001843/0.577, allocations: 0.6482 MB / 0.4982 GB, free: 7.551 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.682e-06/0.577, allocations: 0 / 0.4982 GB, free: 7.551 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001034/0.578, allocations: 0.5293 MB / 0.4987 GB, free: 7.078 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006619/0.5787, allocations: 94.08 kB / 0.4988 GB, free: 7.004 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006412/0.5851, allocations: 5.797 MB / 0.5044 GB, free: 1.441 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000335/0.5855, allocations: 0.7916 MB / 0.5052 GB, free: 0.625 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00116/0.5867, allocations: 179.1 kB / 0.5054 GB, free: 460 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003567/0.587, allocations: 131.9 kB / 0.5055 GB, free: 388 kB / 382.1 MB Notification: Performance of SimCode: time 1.032e-06/0.5871, allocations: 0 / 0.5055 GB, free: 388 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03381/0.6209, allocations: 18.64 MB / 0.5237 GB, free: 13.89 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001776/0.6211, allocations: 197.5 kB / 0.5239 GB, free: 13.66 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.41/3.032, allocations: 0 / 0.5239 GB, free: 13.66 MB / 414.1 MB (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/linux/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 --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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Media.Examples.MixtureGases_res.mat does not exist to compare? outputFormat=mat