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.008476/0.008476, allocations: 99.47 kB / 15.73 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.002052/0.002052, allocations: 200.2 kB / 16.68 MB, free: 6.352 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.476/1.476, allocations: 222.9 MB / 240.4 MB, free: 4.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2114/0.2114, allocations: 15.32 MB / 305.9 MB, free: 15.3 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001855/0.001855, allocations: 67.91 kB / 424.7 MB, free: 13.59 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2619/0.2637, 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.03577/0.2995, allocations: 28.51 MB / 0.495 GB, free: 6.195 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.4284/0.728, allocations: 153.2 MB / 0.6446 GB, free: 6.766 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002515/0.7305, allocations: 28.91 kB / 0.6446 GB, free: 6.754 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002203/0.7327, allocations: 0.5034 MB / 0.6451 GB, free: 6.547 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006537/0.7393, allocations: 1.634 MB / 0.6467 GB, free: 5.883 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00866/0.748, allocations: 2.948 MB / 0.6496 GB, free: 5 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.003996/0.752, allocations: 2.587 MB / 0.6521 GB, free: 4.473 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003072/0.7551, allocations: 1.521 MB / 0.6536 GB, free: 4.219 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002637/0.7578, allocations: 1.249 MB / 0.6548 GB, free: 4.051 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003105/0.7609, allocations: 1.376 MB / 0.6562 GB, free: 3.77 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007641/0.7617, allocations: 226 kB / 0.6564 GB, free: 3.77 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01075/0.7725, allocations: 2.323 MB / 0.6586 GB, free: 3.344 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001387/0.7739, allocations: 0.571 MB / 0.6592 GB, free: 3.152 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002322/0.7762, allocations: 1.187 MB / 0.6604 GB, free: 2.734 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01495/0.7912, allocations: 4.972 MB / 0.6652 GB, free: 0.9609 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.223e-06/0.7913, allocations: 0 / 0.6652 GB, free: 0.9609 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.7913, allocations: 0 / 0.6652 GB, free: 0.9609 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.748e-05/0.7914, allocations: 0 / 0.6652 GB, free: 0.9609 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.007861/0.7992, allocations: 2.906 MB / 0.668 GB, free: 15.29 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.267e-05/0.7993, allocations: 13.47 kB / 0.6681 GB, free: 15.29 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004523/0.7998, allocations: 277 kB / 0.6683 GB, free: 15.19 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006746/0.8065, allocations: 0.8593 MB / 0.6692 GB, free: 14.88 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003223/0.8098, allocations: 0.9757 MB / 0.6701 GB, free: 14.3 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002555/0.8101, allocations: 207.9 kB / 0.6703 GB, free: 14.23 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005056/0.8106, allocations: 195.1 kB / 0.6705 GB, free: 14.23 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006001/0.8166, allocations: 2.153 MB / 0.6726 GB, free: 13.61 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.018e-05/0.8167, allocations: 3.984 kB / 0.6726 GB, free: 13.61 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002858/0.817, allocations: 79.38 kB / 0.6727 GB, free: 13.61 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.452e-05/0.8171, allocations: 47.84 kB / 0.6727 GB, free: 13.61 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004167/0.8213, allocations: 2.307 MB / 0.675 GB, free: 12.7 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.01287/0.8342, allocations: 7.647 MB / 0.6824 GB, free: 6.668 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004226/0.8384, allocations: 2.206 MB / 0.6846 GB, free: 5.156 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001293/0.8398, allocations: 0.8341 MB / 0.6854 GB, free: 4.723 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01062/0.8504, allocations: 6.635 MB / 0.6919 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.465e-05/0.8505, allocations: 45.44 kB / 0.6919 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=133): time 2.965e-06/0.8505, allocations: 0 / 0.6919 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of matching and sorting (n=176): time 0.01834/0.8688, allocations: 7.015 MB / 0.6988 GB, free: 10.94 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.812e-05/0.8689, allocations: 95.11 kB / 0.6989 GB, free: 10.83 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001318/0.8703, allocations: 0.9574 MB / 0.6998 GB, free: 9.855 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001814/0.8705, allocations: 61.69 kB / 0.6999 GB, free: 9.789 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007153/0.8712, allocations: 0.9061 MB / 0.7008 GB, free: 8.879 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006434/0.8718, allocations: 0.6284 MB / 0.7014 GB, free: 8.258 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006405/0.8725, allocations: 407.6 kB / 0.7018 GB, free: 7.852 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001416/0.8726, allocations: 305.1 kB / 0.7021 GB, free: 7.551 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001319/0.874, allocations: 0.6313 MB / 0.7027 GB, free: 6.918 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001818/0.8758, allocations: 1.201 MB / 0.7038 GB, free: 5.465 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003341/0.8791, allocations: 2.003 MB / 0.7058 GB, free: 3.215 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.749e-06/0.8792, allocations: 4 kB / 0.7058 GB, free: 3.211 MB / 0.4981 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.006474/0.8857, allocations: 2.637 MB / 0.7084 GB, free: 0.5469 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.082e-05/0.8857, allocations: 15.94 kB / 0.7084 GB, free: 0.5312 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.064e-05/0.8858, allocations: 16 kB / 0.7084 GB, free: 0.5156 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002464/0.8882, allocations: 0.6278 MB / 0.709 GB, free: 15.88 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002324/0.8906, allocations: 487.3 kB / 0.7095 GB, free: 15.4 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01198/0.9026, allocations: 9.524 MB / 0.7188 GB, free: 5.297 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001609/0.9042, allocations: 75.94 kB / 0.7189 GB, free: 5.223 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003141/0.9046, allocations: 162.7 kB / 0.719 GB, free: 5.066 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.0009388/0.9055, allocations: 425.2 kB / 0.7194 GB, free: 4.641 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003669/0.9059, allocations: 159 kB / 0.7196 GB, free: 4.484 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006509/0.9124, allocations: 2.736 MB / 0.7222 GB, free: 1.738 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.055e-05/0.9124, allocations: 23.94 kB / 0.7223 GB, free: 1.715 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.259e-05/0.9125, allocations: 4 kB / 0.7223 GB, free: 1.711 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.989e-05/0.9125, allocations: 7.969 kB / 0.7223 GB, free: 1.703 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008386/0.9209, allocations: 4.271 MB / 0.7264 GB, free: 13.39 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-05/0.9209, allocations: 3.938 kB / 0.7265 GB, free: 13.38 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002016/0.923, allocations: 359.7 kB / 0.7268 GB, free: 13.03 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002435/0.9254, allocations: 0.594 MB / 0.7274 GB, free: 12.42 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002157/0.9256, allocations: 79.95 kB / 0.7275 GB, free: 12.34 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009978/0.9356, allocations: 8.647 MB / 0.7359 GB, free: 3.109 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/0.9357, allocations: 7.875 kB / 0.7359 GB, free: 3.102 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006948/0.9426, allocations: 3.289 MB / 0.7391 GB, free: 15.77 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004421/0.9431, allocations: 216 kB / 0.7393 GB, free: 15.54 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002338/0.9433, allocations: 39.94 kB / 0.7394 GB, free: 15.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008221/0.9442, allocations: 39.98 kB / 0.7394 GB, free: 15.46 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003687/0.9445, allocations: 169.7 kB / 0.7396 GB, free: 15.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002194/0.9448, allocations: 132 kB / 0.7397 GB, free: 15.17 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0009804/0.9458, allocations: 0.6218 MB / 0.7403 GB, free: 14.54 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.81e-07/0.9458, allocations: 0 / 0.7403 GB, free: 14.54 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.002834/0.9486, allocations: 0.846 MB / 0.7411 GB, free: 13.69 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.008781/0.9574, allocations: 4.532 MB / 0.7455 GB, free: 9.18 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.004654/0.9621, allocations: 2.474 MB / 0.748 GB, free: 6.656 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.683e-06/0.9621, allocations: 4 kB / 0.748 GB, free: 6.652 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002807/0.9649, allocations: 1.576 MB / 0.7495 GB, free: 5.027 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001707/0.9667, allocations: 308.9 kB / 0.7498 GB, free: 4.746 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02736/0.9941, allocations: 14.32 MB / 0.7638 GB, free: 5.688 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001383/0.9955, allocations: 1.398 MB / 0.7651 GB, free: 4.254 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00177/0.9973, allocations: 434.2 kB / 0.7656 GB, free: 3.844 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001613/0.9989, allocations: 0.8975 MB / 0.7664 GB, free: 2.945 MB / 0.5606 GB Notification: Performance of SimCode: time 1.292e-06/0.9989, allocations: 0 / 0.7664 GB, free: 2.945 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1326/1.131, allocations: 50.98 MB / 0.8162 GB, free: 364 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.04/25.17, allocations: 13.78 kB / 0.8162 GB, free: 352 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)