Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.HydrogenCombustion.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo) 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(Chemical.Examples.HydrogenCombustion,fileNamePrefix="Chemical_Chemical_Examples_HydrogenCombustion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.HydrogenCombustion,fileNamePrefix="Chemical_Chemical_Examples_HydrogenCombustion",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.006183/0.006183, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001379/0.001379, allocations: 202.2 kB / 16.68 MB, free: 5.969 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.406/1.406, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2394/0.2394, allocations: 15.32 MB / 305.9 MB, free: 15.25 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001414/0.001414, allocations: 64.05 kB / 424.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2609/0.2623, allocations: 53.61 MB / 478.3 MB, free: 25.64 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740:66:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740:66:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Examples.HydrogenCombustion): time 0.03659/0.299, allocations: 28.37 MB / 0.4948 GB, free: 6.367 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.4991/0.7981, allocations: 153.2 MB / 0.6444 GB, free: 6.723 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002277/0.8004, allocations: 25.78 kB / 0.6445 GB, free: 6.715 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001688/0.8021, allocations: 0.5091 MB / 0.6449 GB, free: 6.508 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005639/0.8078, allocations: 1.664 MB / 0.6466 GB, free: 5.84 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009446/0.8172, allocations: 2.99 MB / 0.6495 GB, free: 4.957 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.004737/0.822, allocations: 2.591 MB / 0.652 GB, free: 4.43 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002501/0.8245, allocations: 1.517 MB / 0.6535 GB, free: 4.156 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002306/0.8268, allocations: 1.254 MB / 0.6547 GB, free: 3.988 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002998/0.8299, allocations: 1.379 MB / 0.6561 GB, free: 3.707 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007235/0.8306, allocations: 226.2 kB / 0.6563 GB, free: 3.707 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01123/0.8418, allocations: 2.323 MB / 0.6586 GB, free: 3.285 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001062/0.8429, allocations: 0.565 MB / 0.6591 GB, free: 3.098 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002067/0.845, allocations: 1.177 MB / 0.6603 GB, free: 2.688 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01205/0.8571, allocations: 4.984 MB / 0.6651 GB, free: 0.9062 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.8571, allocations: 0 / 0.6651 GB, free: 0.9062 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.8571, allocations: 4 kB / 0.6651 GB, free: 0.9023 MB / 478.1 MB Notification: Performance of Transformations before backend: time 4.671e-05/0.8572, allocations: 3.938 kB / 0.6651 GB, free: 0.8984 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 492 * Number of variables: 492 Notification: Performance of Generate backend data structure: time 0.005505/0.8627, allocations: 2.903 MB / 0.668 GB, free: 15.23 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.606e-05/0.8627, allocations: 10.12 kB / 0.668 GB, free: 15.23 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003209/0.8631, allocations: 276.6 kB / 0.6682 GB, free: 15.13 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004248/0.8673, allocations: 0.8618 MB / 0.6691 GB, free: 14.83 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001802/0.8691, allocations: 0.9767 MB / 0.67 GB, free: 14.24 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001617/0.8693, allocations: 205.4 kB / 0.6702 GB, free: 14.17 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002881/0.8696, allocations: 197.8 kB / 0.6704 GB, free: 14.17 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003372/0.873, allocations: 2.153 MB / 0.6725 GB, free: 13.55 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.825e-05/0.873, allocations: 0 / 0.6725 GB, free: 13.55 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001786/0.8732, allocations: 79.31 kB / 0.6726 GB, free: 13.55 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.293e-05/0.8733, allocations: 45.38 kB / 0.6726 GB, free: 13.55 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003687/0.877, allocations: 2.309 MB / 0.6749 GB, free: 12.61 MB / 494.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.01145/0.8884, allocations: 7.648 MB / 0.6824 GB, free: 6.566 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004219/0.8927, allocations: 2.21 MB / 0.6845 GB, free: 5.051 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001216/0.8939, allocations: 0.8279 MB / 0.6853 GB, free: 4.621 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009066/0.903, allocations: 6.629 MB / 0.6918 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.3e-05/0.903, allocations: 52.53 kB / 0.6919 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=133): time 3.085e-06/0.903, allocations: 0 / 0.6919 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of matching and sorting (n=176): time 0.01777/0.9208, allocations: 7.017 MB / 0.6987 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.988e-05/0.9209, allocations: 99.09 kB / 0.6988 GB, free: 10.67 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001264/0.9222, allocations: 0.9574 MB / 0.6997 GB, free: 9.695 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001199/0.9223, allocations: 57.7 kB / 0.6998 GB, free: 9.633 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006093/0.9229, allocations: 0.8952 MB / 0.7007 GB, free: 8.734 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005046/0.9234, allocations: 0.6361 MB / 0.7013 GB, free: 8.105 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005475/0.924, allocations: 411.6 kB / 0.7017 GB, free: 7.695 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001021/0.9241, allocations: 301.1 kB / 0.702 GB, free: 7.398 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001126/0.9252, allocations: 0.6288 MB / 0.7026 GB, free: 6.766 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001576/0.9268, allocations: 1.201 MB / 0.7038 GB, free: 5.312 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002973/0.9298, allocations: 2.003 MB / 0.7057 GB, free: 3.062 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.04e-05/0.9298, allocations: 8 kB / 0.7057 GB, free: 3.055 MB / 0.4981 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.005458/0.9353, allocations: 2.633 MB / 0.7083 GB, free: 404 kB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.456e-05/0.9354, allocations: 14.19 kB / 0.7083 GB, free: 392 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.134e-05/0.9354, allocations: 16.88 kB / 0.7083 GB, free: 376 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002362/0.9378, allocations: 0.6356 MB / 0.7089 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002336/0.9401, allocations: 483.3 kB / 0.7094 GB, free: 15.24 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01024/0.9504, allocations: 9.532 MB / 0.7187 GB, free: 5.137 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001744/0.9522, allocations: 71.88 kB / 0.7188 GB, free: 5.066 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002602/0.9524, allocations: 160 kB / 0.7189 GB, free: 4.91 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 80 * 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 (208): * Single equations (assignments): 202 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,10,100.0%), (1,11,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,6), (1,11), (1,12)} Notification: Performance of prepare postOptimizeDAE: time 0.001064/0.9535, allocations: 425.3 kB / 0.7193 GB, free: 4.484 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004228/0.9539, allocations: 159 kB / 0.7195 GB, free: 4.328 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006055/0.96, allocations: 2.732 MB / 0.7222 GB, free: 1.586 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.848e-05/0.96, allocations: 20 kB / 0.7222 GB, free: 1.566 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.22e-05/0.9601, allocations: 4 kB / 0.7222 GB, free: 1.562 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-05/0.9601, allocations: 11.95 kB / 0.7222 GB, free: 1.551 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00858/0.9687, allocations: 4.266 MB / 0.7264 GB, free: 13.24 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.548e-06/0.9687, allocations: 10.56 kB / 0.7264 GB, free: 13.23 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002007/0.9707, allocations: 359.7 kB / 0.7267 GB, free: 12.88 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002388/0.9731, allocations: 0.5922 MB / 0.7273 GB, free: 12.27 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001715/0.9733, allocations: 79.95 kB / 0.7274 GB, free: 12.19 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009117/0.9824, allocations: 8.649 MB / 0.7358 GB, free: 2.953 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.9825, allocations: 4.609 kB / 0.7358 GB, free: 2.949 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006529/0.989, allocations: 3.286 MB / 0.739 GB, free: 15.62 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005541/0.9896, allocations: 216.1 kB / 0.7392 GB, free: 15.39 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000249/0.9899, allocations: 42.56 kB / 0.7393 GB, free: 15.35 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008273/0.9907, allocations: 36 kB / 0.7393 GB, free: 15.31 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003917/0.9911, allocations: 173.7 kB / 0.7395 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001855/0.9913, allocations: 120 kB / 0.7396 GB, free: 15.03 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0008471/0.9921, allocations: 0.6257 MB / 0.7402 GB, free: 14.39 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9922, allocations: 0 / 0.7402 GB, free: 14.39 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.002719/0.9949, allocations: 0.8499 MB / 0.741 GB, free: 13.54 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (H2_gas.logn,O2_gas.logn,H2O_gas.molarVolume,H2O_gas.logn,H2_gas1.logn,O2_gas1.logn,H2O_gas1.molarVolume,H2O_gas1.logn) * 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 (147): * Single equations (assignments): 141 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,9,100.0%), (1,6,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,10), (1,8), (1,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008298/1.003, allocations: 4.532 MB / 0.7455 GB, free: 9.031 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.004432/1.008, allocations: 2.48 MB / 0.7479 GB, free: 6.5 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/1.008, allocations: 0 / 0.7479 GB, free: 6.5 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002527/1.01, allocations: 1.582 MB / 0.7494 GB, free: 4.871 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001682/1.012, allocations: 316.5 kB / 0.7497 GB, free: 4.59 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02855/1.04, allocations: 14.29 MB / 0.7637 GB, free: 5.547 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001468/1.042, allocations: 1.406 MB / 0.7651 GB, free: 4.105 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001815/1.044, allocations: 442 kB / 0.7655 GB, free: 3.688 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001479/1.045, allocations: 0.8936 MB / 0.7664 GB, free: 2.793 MB / 0.5606 GB Notification: Performance of SimCode: time 1.332e-06/1.045, allocations: 0 / 0.7664 GB, free: 2.793 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.107/1.152, allocations: 50.98 MB / 0.8161 GB, free: 212 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.83/23.99, allocations: 6.828 kB / 0.8161 GB, free: 208 kB / 0.6075 GB (rm -f Chemical_Chemical.Examples.HydrogenCombustion.pipe ; mkfifo Chemical_Chemical.Examples.HydrogenCombustion.pipe ; head -c 1048576 < Chemical_Chemical.Examples.HydrogenCombustion.pipe >> ../files/Chemical_Chemical.Examples.HydrogenCombustion.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.HydrogenCombustion_res.csv --start-time 0 --stop-time 0.39 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000156 Chemical_Chemical_Examples_HydrogenCombustion.fmu > Chemical_Chemical.Examples.HydrogenCombustion.pipe 2>&1)