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.009695/0.009695, allocations: 99.52 kB / 15.73 MB, free: 6.039 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.002065/0.002065, allocations: 198.1 kB / 16.67 MB, free: 5.965 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.515/1.515, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2631/0.2631, allocations: 15.32 MB / 305.9 MB, free: 15.26 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001303, allocations: 67.89 kB / 425.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3434/0.3447, allocations: 53.61 MB / 478.8 MB, free: 25.99 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.EnzymeKinetics): time 0.03626/0.381, allocations: 26.5 MB / 0.4934 GB, free: 8.188 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02063/0.4016, allocations: 19.47 MB / 0.5125 GB, free: 4.645 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001291/0.4029, allocations: 15.94 kB / 0.5125 GB, free: 4.629 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001112/0.4041, allocations: 416.9 kB / 0.5129 GB, free: 4.219 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004616/0.4087, allocations: 1.645 MB / 0.5145 GB, free: 2.562 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006766/0.4155, allocations: 2.485 MB / 0.5169 GB, free: 64 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003409/0.4189, allocations: 1.966 MB / 0.5188 GB, free: 14.09 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001558/0.4205, allocations: 1.122 MB / 0.5199 GB, free: 12.94 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001332/0.4218, allocations: 0.9898 MB / 0.5209 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001633/0.4235, allocations: 1.118 MB / 0.522 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003122/0.4238, allocations: 176 kB / 0.5221 GB, free: 10.65 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007251/0.4311, allocations: 2.161 MB / 0.5243 GB, free: 8.488 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005411/0.4316, allocations: 422.8 kB / 0.5247 GB, free: 8.074 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00102/0.4327, allocations: 0.8596 MB / 0.5255 GB, free: 7.211 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01138/0.4441, allocations: 4.132 MB / 0.5295 GB, free: 3.062 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.4441, allocations: 0 / 0.5295 GB, free: 3.062 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4441, allocations: 0 / 0.5295 GB, free: 3.062 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.838e-05/0.4441, allocations: 0 / 0.5295 GB, free: 3.062 MB / 398.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.004567/0.4487, allocations: 2.249 MB / 0.5317 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.889e-05/0.4488, allocations: 8.031 kB / 0.5317 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001717/0.4505, allocations: 351.3 kB / 0.5321 GB, free: 412 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001462/0.452, allocations: 0.8139 MB / 0.5329 GB, free: 15.55 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001485/0.4521, allocations: 158.6 kB / 0.533 GB, free: 15.38 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002161/0.4524, allocations: 136.3 kB / 0.5331 GB, free: 15.25 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002942/0.4553, allocations: 1.706 MB / 0.5348 GB, free: 13.5 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.092e-05/0.4554, allocations: 4 kB / 0.5348 GB, free: 13.5 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001402/0.4555, allocations: 56 kB / 0.5349 GB, free: 13.44 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.947e-05/0.4555, allocations: 32 kB / 0.5349 GB, free: 13.41 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00345/0.459, allocations: 2.189 MB / 0.537 GB, free: 11.21 MB / 414.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.009056/0.4681, allocations: 5.5 MB / 0.5424 GB, free: 5.492 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005174/0.4733, allocations: 3.221 MB / 0.5456 GB, free: 2.16 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001251/0.4745, allocations: 0.8207 MB / 0.5464 GB, free: 1.336 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00906/0.4836, allocations: 6.993 MB / 0.5532 GB, free: 9.57 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.809e-05/0.4837, allocations: 43.56 kB / 0.5532 GB, free: 9.52 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004596/0.4841, allocations: 127.1 kB / 0.5534 GB, free: 9.395 MB / 430.1 MB Notification: Performance of pre-optimization done (n=97): time 2.534e-06/0.4842, allocations: 0 / 0.5534 GB, free: 9.395 MB / 430.1 MB Notification: Performance of matching and sorting (n=116): time 0.01638/0.5005, allocations: 4.541 MB / 0.5578 GB, free: 4.754 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.513e-05/0.5006, allocations: 64.41 kB / 0.5578 GB, free: 4.68 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009618/0.5016, allocations: 0.7316 MB / 0.5586 GB, free: 3.938 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.835e-05/0.5017, allocations: 41.7 kB / 0.5586 GB, free: 3.891 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000481/0.5022, allocations: 0.6638 MB / 0.5592 GB, free: 3.219 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003764/0.5026, allocations: 432.4 kB / 0.5597 GB, free: 2.793 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004226/0.503, allocations: 295.4 kB / 0.5599 GB, free: 2.496 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001759/0.5032, allocations: 353.9 kB / 0.5603 GB, free: 2.145 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000816/0.504, allocations: 475.8 kB / 0.5607 GB, free: 1.68 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001171/0.5052, allocations: 0.9879 MB / 0.5617 GB, free: 484 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002231/0.5074, allocations: 1.585 MB / 0.5632 GB, free: 14.66 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.137e-06/0.5075, allocations: 8 kB / 0.5633 GB, free: 14.65 MB / 446.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.005514/0.513, allocations: 1.987 MB / 0.5652 GB, free: 12.64 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.245e-05/0.513, allocations: 17.81 kB / 0.5652 GB, free: 12.63 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.073e-05/0.513, allocations: 20 kB / 0.5652 GB, free: 12.61 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00252/0.5156, allocations: 442.2 kB / 0.5657 GB, free: 12.17 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00119/0.5168, allocations: 375.4 kB / 0.566 GB, free: 11.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005452/0.5222, allocations: 3.869 MB / 0.5698 GB, free: 7.664 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001105/0.5234, allocations: 63.86 kB / 0.5699 GB, free: 7.602 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001494/0.5235, allocations: 87.97 kB / 0.5699 GB, free: 7.516 MB / 446.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.0005599/0.5241, allocations: 313.3 kB / 0.5702 GB, free: 7.199 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002849/0.5244, allocations: 115.2 kB / 0.5703 GB, free: 7.086 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005522/0.5299, allocations: 1.799 MB / 0.5721 GB, free: 5.266 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.198e-05/0.5299, allocations: 12 kB / 0.5721 GB, free: 5.254 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/0.53, allocations: 15.92 kB / 0.5721 GB, free: 5.238 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.219e-05/0.53, allocations: 3.984 kB / 0.5721 GB, free: 5.234 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00203/0.532, allocations: 1.327 MB / 0.5734 GB, free: 3.84 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.532, allocations: 3.938 kB / 0.5734 GB, free: 3.836 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008675/0.5329, allocations: 227.8 kB / 0.5736 GB, free: 3.613 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002394/0.5353, allocations: 430.1 kB / 0.5741 GB, free: 3.184 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001009/0.5354, allocations: 43.98 kB / 0.5741 GB, free: 3.141 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005009/0.5404, allocations: 3.779 MB / 0.5778 GB, free: 15.08 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.5405, allocations: 0 / 0.5778 GB, free: 15.08 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006018/0.5465, allocations: 2.352 MB / 0.5801 GB, free: 12.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006322/0.5471, allocations: 288.3 kB / 0.5804 GB, free: 12.39 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001519/0.5473, allocations: 31.98 kB / 0.5804 GB, free: 12.36 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006029/0.5479, allocations: 28.12 kB / 0.5804 GB, free: 12.34 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002781/0.5482, allocations: 109 kB / 0.5805 GB, free: 12.23 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000101/0.5483, allocations: 55.97 kB / 0.5806 GB, free: 12.17 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0005907/0.5489, allocations: 483 kB / 0.581 GB, free: 11.7 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5489, allocations: 0 / 0.581 GB, free: 11.7 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002398/0.5513, allocations: 0.8376 MB / 0.5819 GB, free: 10.86 MB / 462.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.001851/0.5532, allocations: 0.9374 MB / 0.5828 GB, free: 9.91 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003003/0.5562, allocations: 1.662 MB / 0.5844 GB, free: 8.203 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.5562, allocations: 11.94 kB / 0.5844 GB, free: 8.191 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001422/0.5576, allocations: 0.9967 MB / 0.5854 GB, free: 7.145 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001156/0.5588, allocations: 248.8 kB / 0.5856 GB, free: 6.914 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004093/0.5629, allocations: 2.429 MB / 0.588 GB, free: 4.441 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006813/0.5636, allocations: 1.121 MB / 0.5891 GB, free: 3.289 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0009625/0.5646, allocations: 304.8 kB / 0.5894 GB, free: 2.988 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000402/0.565, allocations: 179.3 kB / 0.5895 GB, free: 2.812 MB / 462.1 MB Notification: Performance of SimCode: time 2.304e-06/0.565, allocations: 4 kB / 0.5895 GB, free: 2.809 MB / 462.1 MB Notification: Performance of Templates: time 0.2918/0.8568, allocations: 28.59 MB / 0.6175 GB, free: 116.1 MB / 478.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 -lv LOG_STATS > Chemical_Chemical.Examples.EnzymeKinetics.pipe 2>&1)