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: translateModel(Chemical.Examples.HydrogenCombustion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.HydrogenCombustion") translateModel(Chemical.Examples.HydrogenCombustion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.HydrogenCombustion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001237/0.001237, allocations: 106.8 kB / 16.36 MB, free: 5.824 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.001203/0.001203, allocations: 193.1 kB / 17.29 MB, free: 5.48 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.354/1.354, allocations: 222.9 MB / 241 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08298/0.08298, allocations: 15.3 MB / 306.5 MB, free: 15.4 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001346/0.001346, allocations: 61.86 kB / 371.7 MB, free: 50.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09914/0.1005, allocations: 53.61 MB / 425.3 MB, free: 13.27 MB / 302.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.03699/0.1375, allocations: 28.09 MB / 453.4 MB, free: 1.293 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.4491/0.5867, allocations: 153.2 MB / 0.5924 GB, free: 15.86 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002331/0.5891, allocations: 27.88 kB / 0.5924 GB, free: 15.84 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002198/0.5913, allocations: 0.5115 MB / 0.5929 GB, free: 15.33 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008023/0.5993, allocations: 1.635 MB / 0.5945 GB, free: 13.68 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01391/0.6133, allocations: 2.952 MB / 0.5974 GB, free: 10.71 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005188/0.6185, allocations: 2.59 MB / 0.5999 GB, free: 8.113 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002974/0.6215, allocations: 1.515 MB / 0.6014 GB, free: 6.559 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002555/0.6241, allocations: 1.258 MB / 0.6027 GB, free: 5.297 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003093/0.6272, allocations: 1.37 MB / 0.604 GB, free: 3.922 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006496/0.6279, allocations: 228 kB / 0.6042 GB, free: 3.699 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01029/0.6382, allocations: 2.325 MB / 0.6065 GB, free: 1.371 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001266/0.6395, allocations: 0.5647 MB / 0.607 GB, free: 0.8047 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002266/0.6418, allocations: 1.182 MB / 0.6082 GB, free: 15.61 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01475/0.6566, allocations: 4.942 MB / 0.613 GB, free: 10.66 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.6566, allocations: 0 / 0.613 GB, free: 10.66 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.6566, allocations: 0 / 0.613 GB, free: 10.66 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.071e-05/0.6567, allocations: 8 kB / 0.613 GB, free: 10.65 MB / 430.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.005306/0.662, allocations: 2.828 MB / 0.6158 GB, free: 7.77 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.038e-05/0.6621, allocations: 8.031 kB / 0.6158 GB, free: 7.762 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004157/0.6662, allocations: 0.849 MB / 0.6166 GB, free: 6.91 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00192/0.6682, allocations: 0.9703 MB / 0.6176 GB, free: 5.898 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002073/0.6684, allocations: 211.8 kB / 0.6178 GB, free: 5.68 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003206/0.6687, allocations: 192.4 kB / 0.618 GB, free: 5.492 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003642/0.6724, allocations: 2.152 MB / 0.6201 GB, free: 3.297 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.263e-05/0.6724, allocations: 3.938 kB / 0.6201 GB, free: 3.293 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001681/0.6726, allocations: 76 kB / 0.6201 GB, free: 3.219 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.774e-05/0.6726, allocations: 48 kB / 0.6202 GB, free: 3.172 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003888/0.6765, allocations: 2.309 MB / 0.6224 GB, free: 0.8633 MB / 430.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.01199/0.6885, allocations: 7.639 MB / 0.6299 GB, free: 8.82 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004191/0.6928, allocations: 2.196 MB / 0.632 GB, free: 6.48 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001238/0.694, allocations: 0.8292 MB / 0.6328 GB, free: 5.652 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008656/0.7027, allocations: 6.641 MB / 0.6393 GB, free: 14.36 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.191e-05/0.7028, allocations: 51.69 kB / 0.6394 GB, free: 14.3 MB / 462.1 MB Notification: Performance of pre-optimization done (n=133): time 3.416e-06/0.7028, allocations: 0 / 0.6394 GB, free: 14.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=176): time 0.01857/0.7213, allocations: 6.942 MB / 0.6462 GB, free: 7.184 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.083e-05/0.7214, allocations: 95.11 kB / 0.6462 GB, free: 7.07 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001176/0.7226, allocations: 0.9573 MB / 0.6472 GB, free: 6.098 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001398/0.7228, allocations: 53.7 kB / 0.6472 GB, free: 6.039 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005074/0.7233, allocations: 0.8764 MB / 0.6481 GB, free: 5.148 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004558/0.7238, allocations: 0.6046 MB / 0.6487 GB, free: 4.535 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005532/0.7243, allocations: 411.4 kB / 0.6491 GB, free: 4.125 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.657e-05/0.7244, allocations: 313.1 kB / 0.6494 GB, free: 3.816 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001112/0.7255, allocations: 0.6288 MB / 0.65 GB, free: 3.184 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001516/0.7271, allocations: 1.201 MB / 0.6512 GB, free: 1.727 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002886/0.73, allocations: 2.007 MB / 0.6531 GB, free: 15.47 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.757e-06/0.73, allocations: 4 kB / 0.6531 GB, free: 15.47 MB / 478.1 MB Notification: Performance of matching and sorting (n=264) (initialization): time 0.005297/0.7353, allocations: 2.628 MB / 0.6557 GB, free: 12.81 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.891e-05/0.7353, allocations: 12 kB / 0.6557 GB, free: 12.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.507e-05/0.7354, allocations: 16 kB / 0.6557 GB, free: 12.79 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002362/0.7377, allocations: 0.628 MB / 0.6563 GB, free: 12.14 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002173/0.7399, allocations: 483.3 kB / 0.6568 GB, free: 11.67 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009684/0.7496, allocations: 9.521 MB / 0.6661 GB, free: 1.566 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001485/0.7511, allocations: 67.98 kB / 0.6662 GB, free: 1.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002559/0.7514, allocations: 162.6 kB / 0.6663 GB, free: 1.344 MB / 478.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.0008606/0.7523, allocations: 437.2 kB / 0.6667 GB, free: 0.9062 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003052/0.7526, allocations: 154.1 kB / 0.6669 GB, free: 0.7539 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006215/0.7588, allocations: 2.724 MB / 0.6695 GB, free: 14.02 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.815e-05/0.7589, allocations: 20 kB / 0.6696 GB, free: 14 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.648e-06/0.7589, allocations: 4 kB / 0.6696 GB, free: 13.99 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.915e-05/0.7589, allocations: 7.969 kB / 0.6696 GB, free: 13.98 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007795/0.7667, allocations: 4.28 MB / 0.6737 GB, free: 9.617 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.225e-06/0.7667, allocations: 0 / 0.6737 GB, free: 9.617 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002098/0.7688, allocations: 371.6 kB / 0.6741 GB, free: 9.254 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003279/0.7721, allocations: 0.585 MB / 0.6747 GB, free: 8.652 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003478/0.7725, allocations: 79.95 kB / 0.6747 GB, free: 8.574 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.012/0.7845, allocations: 8.642 MB / 0.6832 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.7846, allocations: 0 / 0.6832 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009174/0.7938, allocations: 3.285 MB / 0.6864 GB, free: 12 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007235/0.7945, allocations: 211.1 kB / 0.6866 GB, free: 11.78 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003029/0.7948, allocations: 40.39 kB / 0.6866 GB, free: 11.74 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001114/0.796, allocations: 46.62 kB / 0.6867 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005535/0.7965, allocations: 165.8 kB / 0.6868 GB, free: 11.53 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003456/0.7969, allocations: 124 kB / 0.687 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001371/0.7983, allocations: 0.6256 MB / 0.6876 GB, free: 10.78 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.31e-07/0.7983, allocations: 3.938 kB / 0.6876 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003315/0.8016, allocations: 0.8316 MB / 0.6884 GB, free: 9.941 MB / 0.4981 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.001734/0.8034, allocations: 0.7842 MB / 0.6891 GB, free: 9.145 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.004926/0.8083, allocations: 2.476 MB / 0.6916 GB, free: 6.617 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/0.8083, allocations: 4.188 kB / 0.6916 GB, free: 6.613 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003692/0.812, allocations: 1.58 MB / 0.6931 GB, free: 4.988 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002278/0.8143, allocations: 315 kB / 0.6934 GB, free: 4.707 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00858/0.8229, allocations: 3.533 MB / 0.6969 GB, free: 1.125 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2044/1.027, allocations: 1.407 MB / 0.6982 GB, free: 194.3 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001923/1.029, allocations: 434.4 kB / 0.6986 GB, free: 194.3 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007636/1.03, allocations: 278.3 kB / 0.6989 GB, free: 194.3 MB / 0.4981 GB Notification: Performance of SimCode: time 2.996e-06/1.03, allocations: 0 / 0.6989 GB, free: 194.3 MB / 0.4981 GB Notification: Performance of Templates: time 0.05109/1.081, allocations: 36.16 MB / 0.7342 GB, free: 176.2 MB / 0.4981 GB make -j1 -f Chemical_Chemical.Examples.HydrogenCombustion.makefile (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 & ./Chemical_Chemical.Examples.HydrogenCombustion -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Chemical_Chemical.Examples.HydrogenCombustion.pipe 2>&1)