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.001069/0.001069, allocations: 88.39 kB / 16.31 MB, free: 6.449 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.001322/0.001322, allocations: 183.1 kB / 17.21 MB, free: 6.316 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.408/1.408, allocations: 223.3 MB / 241.2 MB, free: 5.145 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002539/0.000254, allocations: 4.781 kB / 300.9 MB, free: 5.922 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09239/0.09267, allocations: 50.43 MB / 351.3 MB, free: 11.33 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.3402/0.4329, allocations: 138.4 MB / 489.7 MB, free: 7.852 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003788/0.4367, allocations: 3.761 MB / 493.5 MB, free: 6.219 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.005e-05/0.4368, allocations: 3.031 kB / 493.5 MB, free: 6.219 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003314/0.4372, allocations: 64.12 kB / 493.5 MB, free: 6.172 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001857/0.439, allocations: 0.8071 MB / 494.3 MB, free: 5.66 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007115/0.4398, allocations: 281.6 kB / 494.6 MB, free: 5.52 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005402/0.4403, allocations: 0.5152 MB / 495.1 MB, free: 5.312 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.793e-05/0.4404, allocations: 16.75 kB / 495.1 MB, free: 5.309 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003422/0.4407, allocations: 201.3 kB / 495.3 MB, free: 5.234 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002303/0.4409, allocations: 164.7 kB / 495.5 MB, free: 5.176 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.032e-05/0.441, allocations: 11.09 kB / 495.5 MB, free: 5.176 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002715/0.4437, allocations: 1.571 MB / 497.1 MB, free: 4.641 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001227/0.4438, allocations: 135 kB / 497.2 MB, free: 4.582 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 7.409e-05/0.4439, allocations: 86.45 kB / 497.3 MB, free: 4.543 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001084/0.445, allocations: 0.9175 MB / 498.2 MB, free: 4.133 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.445, allocations: 3.938 kB / 498.2 MB, free: 4.129 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.445, allocations: 4 kB / 498.2 MB, free: 4.125 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.001e-06/0.445, allocations: 0 / 498.2 MB, free: 4.125 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.001734/0.4468, allocations: 0.6908 MB / 498.9 MB, free: 3.57 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.4468, allocations: 11.25 kB / 498.9 MB, free: 3.57 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.462e-05/0.4469, allocations: 68.25 kB / 499 MB, free: 3.523 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001952/0.4489, allocations: 270.9 kB / 499.3 MB, free: 3.414 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003553/0.4493, allocations: 284.5 kB / 499.5 MB, free: 3.164 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.815e-05/0.4493, allocations: 18.97 kB / 499.6 MB, free: 3.164 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.011e-05/0.4494, allocations: 25.38 kB / 499.6 MB, free: 3.164 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001151/0.4505, allocations: 0.6785 MB / 0.4885 GB, free: 2.934 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.606e-05/0.4505, allocations: 3.938 kB / 0.4885 GB, free: 2.93 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.061e-05/0.4506, allocations: 12.31 kB / 0.4885 GB, free: 2.93 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.182e-05/0.4506, allocations: 16.41 kB / 0.4886 GB, free: 2.93 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001416/0.4521, allocations: 0.7587 MB / 0.4893 GB, free: 2.797 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.003448/0.4555, allocations: 1.803 MB / 0.4911 GB, free: 1.648 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001071/0.4566, allocations: 473.7 kB / 0.4915 GB, free: 1.52 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005292/0.4571, allocations: 235.2 kB / 0.4917 GB, free: 1.461 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00213/0.4593, allocations: 1.382 MB / 0.4931 GB, free: 200 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.831e-05/0.4593, allocations: 44.72 kB / 0.4931 GB, free: 152 kB / 366.1 MB Notification: Performance of pre-optimization done (n=35): time 2.154e-06/0.4593, allocations: 0 / 0.4931 GB, free: 152 kB / 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.01157/0.4709, allocations: 3.647 MB / 0.4967 GB, free: 13.16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.213e-05/0.471, allocations: 85.05 kB / 0.4968 GB, free: 13.06 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001462/0.4711, allocations: 184.8 kB / 0.4969 GB, free: 12.89 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.936e-05/0.4712, allocations: 32.02 kB / 0.497 GB, free: 12.86 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001053/0.4713, allocations: 175.4 kB / 0.4971 GB, free: 12.7 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001532/0.4715, allocations: 182.3 kB / 0.4973 GB, free: 12.54 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.478e-05/0.4715, allocations: 6.562 kB / 0.4973 GB, free: 12.54 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.4717, allocations: 336.3 kB / 0.4976 GB, free: 12.21 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006619/0.4723, allocations: 262.1 kB / 0.4979 GB, free: 12.04 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007459/0.4731, allocations: 426.3 kB / 0.4983 GB, free: 11.64 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006794/0.4738, allocations: 301.9 kB / 0.4986 GB, free: 11.45 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.4738, allocations: 0 / 0.4986 GB, free: 11.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001724/0.4755, allocations: 0.79 MB / 0.4994 GB, free: 10.86 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.4755, allocations: 8 kB / 0.4994 GB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/0.4756, allocations: 8 kB / 0.4994 GB, free: 10.85 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000189/0.4757, allocations: 51.88 kB / 0.4994 GB, free: 10.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001037/0.4768, allocations: 179.3 kB / 0.4996 GB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006616/0.4775, allocations: 1.078 MB / 0.5007 GB, free: 9.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006525/0.4781, allocations: 48.02 kB / 0.5007 GB, free: 9.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.451e-05/0.4782, allocations: 35.42 kB / 0.5007 GB, free: 9.449 MB / 382.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.0002357/0.4785, allocations: 177.9 kB / 0.5009 GB, free: 9.293 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.663e-05/0.4786, allocations: 31.7 kB / 0.5009 GB, free: 9.262 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00201/0.4806, allocations: 0.7799 MB / 0.5017 GB, free: 8.676 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.253e-06/0.4806, allocations: 8 kB / 0.5017 GB, free: 8.668 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.4806, allocations: 0 / 0.5017 GB, free: 8.668 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.641e-05/0.4806, allocations: 7.969 kB / 0.5017 GB, free: 8.66 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00293/0.4836, allocations: 1.563 MB / 0.5032 GB, free: 7.293 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.992e-06/0.4836, allocations: 7.938 kB / 0.5032 GB, free: 7.285 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009709/0.4846, allocations: 143.8 kB / 0.5034 GB, free: 7.145 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001174/0.4847, allocations: 45.62 kB / 0.5034 GB, free: 7.094 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.111e-05/0.4848, allocations: 23.98 kB / 0.5034 GB, free: 7.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001923/0.4867, allocations: 2.533 MB / 0.5059 GB, free: 4.27 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.4867, allocations: 0 / 0.5059 GB, free: 4.27 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002351/0.4891, allocations: 1.079 MB / 0.507 GB, free: 3.145 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001144/0.4892, allocations: 100.8 kB / 0.5071 GB, free: 3.027 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.759e-05/0.4893, allocations: 16 kB / 0.5071 GB, free: 3.012 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000682/0.49, allocations: 36 kB / 0.5071 GB, free: 2.977 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.622e-05/0.49, allocations: 39.88 kB / 0.5072 GB, free: 2.938 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.886e-05/0.4901, allocations: 39.97 kB / 0.5072 GB, free: 2.898 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001244/0.4902, allocations: 124.4 kB / 0.5073 GB, free: 2.777 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4902, allocations: 0 / 0.5073 GB, free: 2.777 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001316/0.4916, allocations: 387.7 kB / 0.5077 GB, free: 2.398 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.004742/0.4963, allocations: 2.186 MB / 0.5098 GB, free: 160 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00179/0.4981, allocations: 0.6519 MB / 0.5105 GB, free: 15.5 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/0.4981, allocations: 0 / 0.5105 GB, free: 15.5 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001021/0.4992, allocations: 0.5311 MB / 0.511 GB, free: 14.95 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000745/0.4999, allocations: 99.16 kB / 0.5111 GB, free: 14.85 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005278/0.5052, allocations: 2.624 MB / 0.5136 GB, free: 12.09 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003853/0.5056, allocations: 0.7852 MB / 0.5144 GB, free: 11.28 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00118/0.5068, allocations: 195.1 kB / 0.5146 GB, free: 11.08 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003721/0.5072, allocations: 119.4 kB / 0.5147 GB, free: 10.96 MB / 398.1 MB Notification: Performance of SimCode: time 2.335e-06/0.5072, allocations: 4 kB / 0.5147 GB, free: 10.96 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03451/0.5417, allocations: 18.4 MB / 0.5327 GB, free: 8.703 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001513/0.5419, allocations: 195.9 kB / 0.5329 GB, free: 8.469 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.568/3.11, allocations: 4.062 kB / 0.5329 GB, free: 8.465 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