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.001767/0.001767, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002877/0.002877, allocations: 196.6 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.849/2.849, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.5907/0.5907, allocations: 15.32 MB / 305.7 MB, free: 15.29 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.002096/0.002096, allocations: 55.91 kB / 370.4 MB, free: 3.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2658/0.2679, allocations: 53.62 MB / 424.1 MB, free: 14.19 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.9146/1.183, allocations: 28.27 MB / 452.3 MB, free: 38.78 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.3467/1.529, allocations: 153.2 MB / 0.5913 GB, free: 10.09 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003266/1.533, allocations: 27.88 kB / 0.5914 GB, free: 10.07 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003472/1.536, allocations: 0.5078 MB / 0.5919 GB, free: 9.555 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01133/1.548, allocations: 1.629 MB / 0.5935 GB, free: 7.914 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01702/1.565, allocations: 2.952 MB / 0.5963 GB, free: 4.945 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.007778/1.573, allocations: 2.577 MB / 0.5989 GB, free: 2.363 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004127/1.577, allocations: 1.521 MB / 0.6003 GB, free: 0.8008 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.6138/2.191, allocations: 1.242 MB / 0.6016 GB, free: 7.035 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005359/2.196, allocations: 1.38 MB / 0.6029 GB, free: 7.035 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001761/2.198, allocations: 225.8 kB / 0.6031 GB, free: 7.035 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01557/2.213, allocations: 2.32 MB / 0.6054 GB, free: 7.035 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001834/2.215, allocations: 0.5746 MB / 0.6059 GB, free: 7.035 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003365/2.219, allocations: 1.18 MB / 0.6071 GB, free: 7.035 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0203/2.239, allocations: 4.921 MB / 0.6119 GB, free: 6.785 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.348e-05/2.239, allocations: 0.8438 kB / 0.6119 GB, free: 6.785 MB / 462.1 MB Notification: Performance of FrontEnd: time 4.498e-06/2.239, allocations: 0 / 0.6119 GB, free: 6.785 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0001428/2.239, allocations: 3.062 kB / 0.6119 GB, free: 6.785 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: 492 * Number of variables: 492 Notification: Performance of Generate backend data structure: time 0.01108/2.25, allocations: 2.831 MB / 0.6147 GB, free: 5.523 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.215e-05/2.251, allocations: 9.719 kB / 0.6147 GB, free: 5.523 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006243/2.251, allocations: 273.5 kB / 0.6149 GB, free: 5.477 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007329/2.259, allocations: 0.8492 MB / 0.6158 GB, free: 5.332 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004003/2.263, allocations: 0.9389 MB / 0.6167 GB, free: 4.957 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004062/2.263, allocations: 206.3 kB / 0.6169 GB, free: 4.891 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001406/2.264, allocations: 200.5 kB / 0.6171 GB, free: 4.887 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009918/2.274, allocations: 2.148 MB / 0.6192 GB, free: 4.707 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.545e-05/2.275, allocations: 4.812 kB / 0.6192 GB, free: 4.707 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003578/2.275, allocations: 75.12 kB / 0.6192 GB, free: 4.707 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001013/2.275, allocations: 50.02 kB / 0.6193 GB, free: 4.707 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00872/2.284, allocations: 2.311 MB / 0.6216 GB, free: 4.691 MB / 462.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.03047/2.314, allocations: 7.683 MB / 0.6291 GB, free: 17.62 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008024/2.322, allocations: 2.204 MB / 0.6312 GB, free: 16.89 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002993/2.326, allocations: 0.8311 MB / 0.632 GB, free: 16.87 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01939/2.345, allocations: 6.641 MB / 0.6385 GB, free: 13.12 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001034/2.345, allocations: 50.47 kB / 0.6386 GB, free: 13.08 MB / 478.1 MB Notification: Performance of pre-optimization done (n=133): time 7.885e-06/2.345, allocations: 0 / 0.6386 GB, free: 13.08 MB / 478.1 MB Notification: Performance of matching and sorting (n=176): time 0.03904/2.384, allocations: 6.952 MB / 0.6453 GB, free: 11.54 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001453/2.384, allocations: 99.3 kB / 0.6454 GB, free: 11.44 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002651/2.387, allocations: 0.9631 MB / 0.6464 GB, free: 11.26 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007586/2.388, allocations: 53.61 kB / 0.6464 GB, free: 11.23 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001057/2.389, allocations: 0.8812 MB / 0.6473 GB, free: 10.78 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001163/2.39, allocations: 0.5938 MB / 0.6479 GB, free: 10.39 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001095/2.391, allocations: 408.3 kB / 0.6483 GB, free: 10.36 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002409/2.392, allocations: 309 kB / 0.6486 GB, free: 10.06 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001925/2.393, allocations: 0.627 MB / 0.6492 GB, free: 10.05 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002572/2.396, allocations: 1.208 MB / 0.6503 GB, free: 9.395 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005258/2.401, allocations: 1.996 MB / 0.6523 GB, free: 8.73 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.442e-05/2.401, allocations: 5.031 kB / 0.6523 GB, free: 8.73 MB / 478.1 MB Notification: Performance of matching and sorting (n=264) (initialization): time 0.009832/2.411, allocations: 2.63 MB / 0.6549 GB, free: 8.332 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.146e-05/2.411, allocations: 10.75 kB / 0.6549 GB, free: 8.332 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.027e-05/2.411, allocations: 18 kB / 0.6549 GB, free: 8.332 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00353/2.415, allocations: 0.6314 MB / 0.6555 GB, free: 8.176 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003535/2.419, allocations: 487 kB / 0.656 GB, free: 8.16 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01707/2.436, allocations: 9.532 MB / 0.6653 GB, free: 0 / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004152/2.44, allocations: 78.39 kB / 0.6654 GB, free: 16 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008361/2.441, allocations: 170.6 kB / 0.6655 GB, free: 15.97 MB / 494.1 MB 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.002313/2.443, allocations: 427.5 kB / 0.6659 GB, free: 15.7 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009302/2.444, allocations: 147.7 kB / 0.6661 GB, free: 15.62 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01364/2.458, allocations: 2.742 MB / 0.6687 GB, free: 14.64 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.409e-05/2.458, allocations: 18.38 kB / 0.6688 GB, free: 14.64 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-05/2.458, allocations: 5.344 kB / 0.6688 GB, free: 14.64 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.19e-05/2.458, allocations: 6.984 kB / 0.6688 GB, free: 14.64 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01827/2.476, allocations: 4.273 MB / 0.673 GB, free: 12.31 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.427e-05/2.477, allocations: 2.75 kB / 0.673 GB, free: 12.31 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004319/2.481, allocations: 364.8 kB / 0.6733 GB, free: 12.24 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004378/2.485, allocations: 0.5968 MB / 0.6739 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006236/2.486, allocations: 76.89 kB / 0.674 GB, free: 11.92 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01457/2.501, allocations: 8.649 MB / 0.6824 GB, free: 3.957 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.855e-06/2.501, allocations: 2.375 kB / 0.6824 GB, free: 3.957 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01191/2.513, allocations: 3.276 MB / 0.6856 GB, free: 1.246 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009127/2.514, allocations: 211.5 kB / 0.6858 GB, free: 1.02 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008134/2.514, allocations: 39.92 kB / 0.6858 GB, free: 0.9805 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001969/2.516, allocations: 37.45 kB / 0.6859 GB, free: 0.9453 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008537/2.517, allocations: 175.5 kB / 0.686 GB, free: 0.7812 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005589/2.518, allocations: 124 kB / 0.6862 GB, free: 0.6602 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002037/2.52, allocations: 0.6277 MB / 0.6868 GB, free: 28 kB / 494.1 MB Notification: Performance of sort global known variables: time 1.152e-06/2.52, allocations: 0 / 0.6868 GB, free: 28 kB / 494.1 MB Notification: Performance of remove unused functions: time 0.00656/2.527, allocations: 0.8355 MB / 0.6876 GB, free: 15.19 MB / 0.4982 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.01639/2.543, allocations: 4.519 MB / 0.692 GB, free: 10.8 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.01019/2.553, allocations: 2.567 MB / 0.6945 GB, free: 8.27 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.243e-05/2.553, allocations: 0 / 0.6945 GB, free: 8.27 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.00533/2.559, allocations: 1.573 MB / 0.6961 GB, free: 6.688 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004484/2.563, allocations: 318.8 kB / 0.6964 GB, free: 6.406 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05743/2.621, allocations: 15.13 MB / 0.7111 GB, free: 6.559 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003128/2.624, allocations: 1.404 MB / 0.7125 GB, free: 5.137 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.004958/2.629, allocations: 435.3 kB / 0.7129 GB, free: 4.832 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002834/2.632, allocations: 0.8983 MB / 0.7138 GB, free: 3.949 MB / 0.5138 GB Notification: Performance of SimCode: time 2.154e-06/2.632, allocations: 0 / 0.7138 GB, free: 3.949 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5571/3.189, allocations: 50.33 MB / 0.7629 GB, free: 2.375 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.5/30.69, allocations: 3.516 kB / 0.7629 GB, free: 2.375 MB / 0.5607 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)