Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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: "" <> buildModelFMU(Modelica.Media.Examples.MixtureGases,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Media_Examples_MixtureGases",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.MixtureGases,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Media_Examples_MixtureGases",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001629/0.001629, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001818/0.001818, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.389/1.389, allocations: 227.7 MB / 247.2 MB, free: 10.18 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002033/0.002033, allocations: 63.89 kB / 358.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2672/0.2692, allocations: 50.54 MB / 409.1 MB, free: 1.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.4298/0.699, allocations: 155.4 MB / 0.5512 GB, free: 0.9219 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.00363/0.7027, allocations: 4.039 MB / 0.5552 GB, free: 0.8672 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001722/0.7029, allocations: 2.562 kB / 0.5552 GB, free: 0.8672 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004181/0.7034, allocations: 104.7 kB / 0.5553 GB, free: 0.8672 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00245/0.7058, allocations: 1.176 MB / 0.5564 GB, free: 0.8086 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008602/0.7067, allocations: 396.4 kB / 0.5568 GB, free: 0.793 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005292/0.7073, allocations: 457.7 kB / 0.5572 GB, free: 0.793 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.813e-05/0.7073, allocations: 22.64 kB / 0.5573 GB, free: 0.7852 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000364/0.7077, allocations: 239.6 kB / 0.5575 GB, free: 0.7852 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001819/0.7079, allocations: 140.4 kB / 0.5576 GB, free: 0.7852 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 4.429e-05/0.7079, allocations: 16.39 kB / 0.5576 GB, free: 0.7852 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003091/0.711, allocations: 2.07 MB / 0.5597 GB, free: 0.7578 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001139/0.7112, allocations: 135.5 kB / 0.5598 GB, free: 0.7578 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000172/0.7113, allocations: 168.8 kB / 0.5599 GB, free: 0.7578 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001968/0.7133, allocations: 1.548 MB / 0.5615 GB, free: 0.7031 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.7133, allocations: 3.938 kB / 0.5615 GB, free: 0.6992 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.7133, allocations: 0 / 0.5615 GB, free: 0.6992 MB / 462.1 MB Notification: Performance of Transformations before backend: time 6.662e-06/0.7133, allocations: 0 / 0.5615 GB, free: 0.6992 MB / 462.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.002156/0.7155, allocations: 0.7842 MB / 0.5622 GB, free: 16.21 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.786e-05/0.7156, allocations: 10.31 kB / 0.5622 GB, free: 16.21 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.898e-05/0.7157, allocations: 66.86 kB / 0.5623 GB, free: 16.17 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006836/0.7164, allocations: 105.7 kB / 0.5624 GB, free: 16.16 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000368/0.7167, allocations: 280.7 kB / 0.5627 GB, free: 15.95 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.884e-05/0.7168, allocations: 26.59 kB / 0.5627 GB, free: 15.94 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.319e-05/0.7168, allocations: 28.47 kB / 0.5627 GB, free: 15.94 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009712/0.7178, allocations: 0.5881 MB / 0.5633 GB, free: 15.89 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.7178, allocations: 0 / 0.5633 GB, free: 15.89 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.26e-05/0.7179, allocations: 17.69 kB / 0.5633 GB, free: 15.88 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.72e-05/0.7179, allocations: 21.7 kB / 0.5633 GB, free: 15.88 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001134/0.7191, allocations: 0.6464 MB / 0.564 GB, free: 15.87 MB / 478.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.002594/0.7217, allocations: 1.271 MB / 0.5652 GB, free: 15.45 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008841/0.7226, allocations: 354.1 kB / 0.5655 GB, free: 15.4 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004191/0.723, allocations: 170.9 kB / 0.5657 GB, free: 15.38 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002345/0.7254, allocations: 1.373 MB / 0.5671 GB, free: 14.24 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.59e-05/0.7254, allocations: 44.22 kB / 0.5671 GB, free: 14.2 MB / 478.1 MB Notification: Performance of pre-optimization done (n=35): time 2.785e-06/0.7254, allocations: 0 / 0.5671 GB, free: 14.2 MB / 478.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.01457/0.74, allocations: 3.489 MB / 0.5705 GB, free: 13.04 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.671e-05/0.7401, allocations: 87.5 kB / 0.5706 GB, free: 12.95 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001717/0.7403, allocations: 185.8 kB / 0.5708 GB, free: 12.83 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 6.407e-05/0.7403, allocations: 35.11 kB / 0.5708 GB, free: 12.8 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001211/0.7405, allocations: 192.2 kB / 0.571 GB, free: 12.64 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001529/0.7406, allocations: 180 kB / 0.5711 GB, free: 12.53 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002079/0.7408, allocations: 117.2 kB / 0.5713 GB, free: 12.5 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.741, allocations: 332.1 kB / 0.5716 GB, free: 12.19 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007269/0.7417, allocations: 268.6 kB / 0.5718 GB, free: 12.19 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008404/0.7426, allocations: 425.9 kB / 0.5722 GB, free: 12 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001569/0.7441, allocations: 0.6968 MB / 0.5729 GB, free: 11.81 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.7442, allocations: 3.406 kB / 0.5729 GB, free: 11.81 MB / 478.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001901/0.7461, allocations: 0.7815 MB / 0.5737 GB, free: 11.73 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.027e-05/0.7461, allocations: 14.75 kB / 0.5737 GB, free: 11.73 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/0.7461, allocations: 5.031 kB / 0.5737 GB, free: 11.73 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002025/0.7463, allocations: 55.23 kB / 0.5738 GB, free: 11.71 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001107/0.7474, allocations: 182.2 kB / 0.5739 GB, free: 11.71 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007517/0.7482, allocations: 1.073 MB / 0.575 GB, free: 10.68 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007634/0.749, allocations: 47.55 kB / 0.575 GB, free: 10.67 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.596e-05/0.7491, allocations: 43.2 kB / 0.5751 GB, free: 10.67 MB / 478.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.0002503/0.7493, allocations: 170.3 kB / 0.5752 GB, free: 10.55 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001217/0.7495, allocations: 35.16 kB / 0.5753 GB, free: 10.54 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002113/0.7516, allocations: 0.7799 MB / 0.576 GB, free: 10.43 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.7516, allocations: 9.344 kB / 0.576 GB, free: 10.43 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.7516, allocations: 0 / 0.576 GB, free: 10.43 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.7516, allocations: 2.812 kB / 0.576 GB, free: 10.43 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003063/0.7547, allocations: 1.559 MB / 0.5776 GB, free: 9.828 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.7547, allocations: 5.469 kB / 0.5776 GB, free: 9.828 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001018/0.7557, allocations: 152.6 kB / 0.5777 GB, free: 9.82 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001299/0.7559, allocations: 47.36 kB / 0.5778 GB, free: 9.801 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.052e-05/0.7559, allocations: 24.86 kB / 0.5778 GB, free: 9.801 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002052/0.758, allocations: 2.726 MB / 0.5804 GB, free: 7.105 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.758, allocations: 2.094 kB / 0.5804 GB, free: 7.105 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002524/0.7605, allocations: 1.076 MB / 0.5815 GB, free: 6.789 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.679e-05/0.7607, allocations: 104.8 kB / 0.5816 GB, free: 6.68 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.208e-05/0.7608, allocations: 20.34 kB / 0.5816 GB, free: 6.672 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007911/0.7616, allocations: 43.92 kB / 0.5817 GB, free: 6.672 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.858e-05/0.7616, allocations: 43.98 kB / 0.5817 GB, free: 6.664 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.294e-05/0.7617, allocations: 33.94 kB / 0.5817 GB, free: 6.664 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0001573/0.7619, allocations: 131.3 kB / 0.5819 GB, free: 6.582 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.7619, allocations: 0 / 0.5819 GB, free: 6.582 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001361/0.7633, allocations: 392 kB / 0.5822 GB, free: 6.535 MB / 478.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.005023/0.7683, allocations: 2.378 MB / 0.5846 GB, free: 5.547 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001921/0.7702, allocations: 0.6578 MB / 0.5852 GB, free: 5.531 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.603e-06/0.7703, allocations: 3.438 kB / 0.5852 GB, free: 5.531 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001076/0.7713, allocations: 0.5291 MB / 0.5857 GB, free: 5.305 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007907/0.7721, allocations: 106.2 kB / 0.5858 GB, free: 5.285 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008073/0.7802, allocations: 4.243 MB / 0.59 GB, free: 3.062 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004928/0.7808, allocations: 0.7816 MB / 0.5907 GB, free: 2.359 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0008874/0.7817, allocations: 181.4 kB / 0.5909 GB, free: 2.273 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003719/0.782, allocations: 129.9 kB / 0.591 GB, free: 2.262 MB / 478.1 MB Notification: Performance of SimCode: time 1.112e-06/0.7821, allocations: 0 / 0.591 GB, free: 2.262 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05462/0.8367, allocations: 19.86 MB / 0.6104 GB, free: 4.125 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.42/14.26, allocations: 3.984 kB / 0.6104 GB, free: 4.121 MB / 494.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Media.Examples.MixtureGases.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Media.Examples.MixtureGases.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Media.Examples.MixtureGases.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Media.Examples.MixtureGases.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Media.Examples.MixtureGases_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Modelica_4_1_0-beta_om_Modelica_Media_Examples_MixtureGases.fmu > Modelica_4.1.0-beta.om_Modelica.Media.Examples.MixtureGases.pipe 2>&1)