Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.EnzymeKinetics.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.EnzymeKinetics,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.EnzymeKinetics") translateModel(Chemical.Examples.EnzymeKinetics,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.EnzymeKinetics") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001695/0.001695, allocations: 103.3 kB / 16.35 MB, free: 5.875 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.00179/0.00179, allocations: 191 kB / 17.29 MB, free: 5.516 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.367/1.367, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08357/0.08357, allocations: 15.31 MB / 306.5 MB, free: 15.39 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 61.33 kB / 371.7 MB, free: 50.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09262/0.09399, allocations: 53.62 MB / 425.4 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.EnzymeKinetics): time 0.03164/0.1257, allocations: 26.18 MB / 451.5 MB, free: 3.215 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02235/0.148, allocations: 19.47 MB / 471 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001017/0.1491, allocations: 15.88 kB / 471 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009899/0.1501, allocations: 420.9 kB / 471.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004372/0.1545, allocations: 1.633 MB / 473.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006681/0.1612, allocations: 2.485 MB / 475.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00269/0.1639, allocations: 1.974 MB / 477.5 MB, free: 9.105 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001395/0.1653, allocations: 1.118 MB / 478.6 MB, free: 7.973 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001127/0.1664, allocations: 0.9898 MB / 479.6 MB, free: 6.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00137/0.1678, allocations: 1.114 MB / 480.7 MB, free: 5.863 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002336/0.168, allocations: 176 kB / 480.9 MB, free: 5.691 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006267/0.1743, allocations: 2.157 MB / 483.1 MB, free: 3.531 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005117/0.1748, allocations: 434.7 kB / 483.5 MB, free: 3.105 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001034/0.1759, allocations: 0.8518 MB / 484.3 MB, free: 2.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009226/0.1851, allocations: 4.095 MB / 488.4 MB, free: 14.14 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.1852, allocations: 4 kB / 488.4 MB, free: 14.14 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1852, allocations: 4 kB / 488.5 MB, free: 14.13 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.269e-05/0.1852, allocations: 0 / 488.5 MB, free: 14.13 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 337 * Number of variables: 337 Notification: Performance of Generate backend data structure: time 0.005299/0.1905, allocations: 2.196 MB / 490.6 MB, free: 11.88 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.193e-05/0.1906, allocations: 8.031 kB / 490.7 MB, free: 11.88 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001666/0.1923, allocations: 334.7 kB / 491 MB, free: 11.55 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001603/0.1939, allocations: 0.8108 MB / 491.8 MB, free: 10.7 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001651/0.1941, allocations: 154.6 kB / 491.9 MB, free: 10.53 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002408/0.1943, allocations: 136.3 kB / 492.1 MB, free: 10.4 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002785/0.1971, allocations: 1.709 MB / 493.8 MB, free: 8.648 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.606e-05/0.1971, allocations: 8 kB / 493.8 MB, free: 8.641 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001378/0.1973, allocations: 52 kB / 493.8 MB, free: 8.59 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.499e-05/0.1973, allocations: 36 kB / 493.9 MB, free: 8.555 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003684/0.201, allocations: 2.189 MB / 496.1 MB, free: 6.359 MB / 366.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.009776/0.2108, allocations: 5.48 MB / 0.4898 GB, free: 0.6523 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005074/0.2159, allocations: 3.221 MB / 0.4929 GB, free: 13.32 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001236/0.2172, allocations: 0.8284 MB / 0.4937 GB, free: 12.49 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009818/0.227, allocations: 6.993 MB / 0.5006 GB, free: 4.715 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.556e-05/0.2271, allocations: 47.5 kB / 0.5006 GB, free: 4.66 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006532/0.2278, allocations: 122.9 kB / 0.5007 GB, free: 4.539 MB / 382.1 MB Notification: Performance of pre-optimization done (n=97): time 3.367e-06/0.2278, allocations: 0 / 0.5007 GB, free: 4.539 MB / 382.1 MB Notification: Performance of matching and sorting (n=116): time 0.2076/0.4354, allocations: 4.502 MB / 0.5051 GB, free: 78.21 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.288e-05/0.4354, allocations: 65.44 kB / 0.5052 GB, free: 78.14 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009068/0.4364, allocations: 0.728 MB / 0.5059 GB, free: 78.02 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002337/0.4366, allocations: 46.36 kB / 0.506 GB, free: 77.99 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003381/0.437, allocations: 0.6421 MB / 0.5066 GB, free: 77.8 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002952/0.4373, allocations: 408.4 kB / 0.507 GB, free: 77.55 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000409/0.4377, allocations: 301.3 kB / 0.5073 GB, free: 77.52 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.758e-05/0.4378, allocations: 353 kB / 0.5076 GB, free: 77.21 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008386/0.4386, allocations: 477.2 kB / 0.508 GB, free: 77.21 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001217/0.4398, allocations: 0.9828 MB / 0.509 GB, free: 76.61 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002199/0.442, allocations: 1.585 MB / 0.5106 GB, free: 75.74 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.015e-05/0.4421, allocations: 4.641 kB / 0.5106 GB, free: 75.74 MB / 382.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.005694/0.4478, allocations: 1.989 MB / 0.5125 GB, free: 75 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.163e-05/0.4478, allocations: 12.78 kB / 0.5125 GB, free: 75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.623e-05/0.4478, allocations: 18.25 kB / 0.5125 GB, free: 75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002781/0.4506, allocations: 441.7 kB / 0.513 GB, free: 74.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001273/0.4519, allocations: 372.4 kB / 0.5133 GB, free: 74.87 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004903/0.4568, allocations: 3.872 MB / 0.5171 GB, free: 71.44 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001156/0.458, allocations: 53.59 kB / 0.5171 GB, free: 71.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001673/0.4582, allocations: 87.05 kB / 0.5172 GB, free: 71.4 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * 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 (190): * Single equations (assignments): 187 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0005568/0.4588, allocations: 319.4 kB / 0.5175 GB, free: 71.16 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002125/0.459, allocations: 110.1 kB / 0.5176 GB, free: 71.1 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005852/0.4648, allocations: 1.802 MB / 0.5194 GB, free: 70.44 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.388e-05/0.4649, allocations: 18.75 kB / 0.5194 GB, free: 70.44 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.828e-06/0.4649, allocations: 1.031 kB / 0.5194 GB, free: 70.44 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.534e-05/0.4649, allocations: 5.828 kB / 0.5194 GB, free: 70.44 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001818/0.4667, allocations: 1.337 MB / 0.5207 GB, free: 69.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.654e-06/0.4668, allocations: 1.438 kB / 0.5207 GB, free: 69.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000932/0.4677, allocations: 226.8 kB / 0.5209 GB, free: 69.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002561/0.4703, allocations: 430.8 kB / 0.5214 GB, free: 69.66 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001022/0.4704, allocations: 41.05 kB / 0.5214 GB, free: 69.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00438/0.4748, allocations: 3.78 MB / 0.5251 GB, free: 66.23 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.4748, allocations: 4.031 kB / 0.5251 GB, free: 66.23 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005864/0.4807, allocations: 2.351 MB / 0.5274 GB, free: 65.21 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006759/0.4814, allocations: 288.2 kB / 0.5277 GB, free: 65 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001701/0.4815, allocations: 19.97 kB / 0.5277 GB, free: 64.99 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006374/0.4822, allocations: 38.22 kB / 0.5277 GB, free: 64.97 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003163/0.4825, allocations: 107.8 kB / 0.5278 GB, free: 64.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001074/0.4826, allocations: 50.98 kB / 0.5279 GB, free: 64.95 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006316/0.4833, allocations: 479.4 kB / 0.5283 GB, free: 64.75 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4833, allocations: 2.656 kB / 0.5283 GB, free: 64.75 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002566/0.4859, allocations: 0.8267 MB / 0.5291 GB, free: 64.64 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (solution.temperature,P.logn,S.logn,ES.logn,E.logn,liquidWater.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 (120): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001411/0.4873, allocations: 0.9238 MB / 0.53 GB, free: 64.45 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002623/0.4899, allocations: 1.66 MB / 0.5317 GB, free: 63.5 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/0.4899, allocations: 1.938 kB / 0.5317 GB, free: 63.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001289/0.4912, allocations: 1.003 MB / 0.5326 GB, free: 62.84 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001032/0.4923, allocations: 242.8 kB / 0.5329 GB, free: 62.72 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003446/0.4957, allocations: 2.393 MB / 0.5352 GB, free: 61.25 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004315/0.4962, allocations: 1.126 MB / 0.5363 GB, free: 60.11 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009291/0.4971, allocations: 301.5 kB / 0.5366 GB, free: 59.89 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003684/0.4975, allocations: 179.3 kB / 0.5368 GB, free: 59.72 MB / 382.1 MB Notification: Performance of SimCode: time 4.91e-07/0.4975, allocations: 0 / 0.5368 GB, free: 59.72 MB / 382.1 MB Notification: Performance of Templates: time 0.03329/0.5308, allocations: 28.33 MB / 0.5644 GB, free: 32.35 MB / 382.1 MB make -j1 -f Chemical_Chemical.Examples.EnzymeKinetics.makefile (rm -f Chemical_Chemical.Examples.EnzymeKinetics.pipe ; mkfifo Chemical_Chemical.Examples.EnzymeKinetics.pipe ; head -c 1048576 < Chemical_Chemical.Examples.EnzymeKinetics.pipe >> ../files/Chemical_Chemical.Examples.EnzymeKinetics.sim & ./Chemical_Chemical.Examples.EnzymeKinetics -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > Chemical_Chemical.Examples.EnzymeKinetics.pipe 2>&1)