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.001255/0.001255, allocations: 110.8 kB / 16.41 MB, free: 6.48 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.00127/0.00127, allocations: 185.5 kB / 17.34 MB, free: 5.754 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.25/1.25, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.07397/0.07397, allocations: 15.31 MB / 306.5 MB, free: 15.44 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001192/0.001192, allocations: 71.84 kB / 425.9 MB, free: 11.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09468/0.09589, allocations: 53.61 MB / 479.5 MB, free: 5.812 MB / 350.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.0336/0.1295, allocations: 26.4 MB / 0.494 GB, free: 11.5 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2525/0.3821, allocations: 19.44 MB / 0.513 GB, free: 18.2 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009712/0.3831, allocations: 18.59 kB / 0.513 GB, free: 18.2 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001297/0.3844, allocations: 425 kB / 0.5134 GB, free: 18.2 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004839/0.3893, allocations: 1.639 MB / 0.515 GB, free: 17.73 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006884/0.3962, allocations: 2.485 MB / 0.5174 GB, free: 16.94 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003005/0.3992, allocations: 1.971 MB / 0.5194 GB, free: 16.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00183/0.4011, allocations: 1.115 MB / 0.5204 GB, free: 16.24 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001917/0.403, allocations: 0.9964 MB / 0.5214 GB, free: 15.9 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002083/0.4051, allocations: 1.112 MB / 0.5225 GB, free: 15.49 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003615/0.4055, allocations: 173.3 kB / 0.5227 GB, free: 15.49 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007565/0.413, allocations: 2.159 MB / 0.5248 GB, free: 14.96 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006104/0.4137, allocations: 429.1 kB / 0.5252 GB, free: 14.72 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00119/0.4149, allocations: 0.8557 MB / 0.526 GB, free: 14.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01005/0.4249, allocations: 4.112 MB / 0.53 GB, free: 12.73 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.425, allocations: 4.391 kB / 0.53 GB, free: 12.73 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.425, allocations: 0 / 0.53 GB, free: 12.73 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.936e-05/0.425, allocations: 1.062 kB / 0.53 GB, free: 12.73 MB / 382.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.004285/0.4293, allocations: 2.196 MB / 0.5322 GB, free: 11.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.4294, allocations: 9.812 kB / 0.5322 GB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001442/0.4308, allocations: 339.2 kB / 0.5325 GB, free: 11.27 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001196/0.432, allocations: 0.8069 MB / 0.5333 GB, free: 10.65 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000122/0.4322, allocations: 156.4 kB / 0.5335 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002207/0.4324, allocations: 145.2 kB / 0.5336 GB, free: 10.49 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002374/0.4348, allocations: 1.72 MB / 0.5353 GB, free: 9.449 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.811e-05/0.4348, allocations: 3.75 kB / 0.5353 GB, free: 9.449 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001343/0.4349, allocations: 51.59 kB / 0.5353 GB, free: 9.41 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.2e-05/0.435, allocations: 36.03 kB / 0.5354 GB, free: 9.41 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002703/0.4377, allocations: 2.183 MB / 0.5375 GB, free: 8.453 MB / 382.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.007344/0.445, allocations: 5.482 MB / 0.5429 GB, free: 3.887 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003957/0.449, allocations: 3.23 MB / 0.546 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009718/0.45, allocations: 0.8129 MB / 0.5468 GB, free: 15.74 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009252/0.4593, allocations: 6.991 MB / 0.5536 GB, free: 8.043 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.344e-05/0.4593, allocations: 47.5 kB / 0.5537 GB, free: 7.988 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005864/0.4599, allocations: 126.8 kB / 0.5538 GB, free: 7.863 MB / 398.1 MB Notification: Performance of pre-optimization done (n=97): time 2.736e-06/0.4599, allocations: 0 / 0.5538 GB, free: 7.863 MB / 398.1 MB Notification: Performance of matching and sorting (n=116): time 0.01759/0.4775, allocations: 4.512 MB / 0.5582 GB, free: 3.305 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.106e-05/0.4776, allocations: 68.39 kB / 0.5583 GB, free: 3.227 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008883/0.4785, allocations: 0.7314 MB / 0.559 GB, free: 2.484 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.012e-05/0.4786, allocations: 41.7 kB / 0.559 GB, free: 2.438 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004/0.479, allocations: 0.6444 MB / 0.5597 GB, free: 1.789 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003182/0.4793, allocations: 410.1 kB / 0.56 GB, free: 1.395 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003768/0.4797, allocations: 299.3 kB / 0.5603 GB, free: 1.094 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.4799, allocations: 353.9 kB / 0.5607 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007706/0.4807, allocations: 479.8 kB / 0.5611 GB, free: 280 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001111/0.4818, allocations: 0.982 MB / 0.5621 GB, free: 15.09 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002052/0.4838, allocations: 1.583 MB / 0.5636 GB, free: 13.31 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.865e-06/0.4839, allocations: 4 kB / 0.5636 GB, free: 13.31 MB / 414.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.00579/0.4897, allocations: 1.986 MB / 0.5656 GB, free: 11.32 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.41e-05/0.4897, allocations: 15.94 kB / 0.5656 GB, free: 11.31 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.286e-05/0.4898, allocations: 18.69 kB / 0.5656 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002727/0.4925, allocations: 442 kB / 0.566 GB, free: 10.87 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001567/0.4941, allocations: 374.1 kB / 0.5664 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005981/0.5001, allocations: 3.876 MB / 0.5702 GB, free: 6.387 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001316/0.5014, allocations: 55.94 kB / 0.5702 GB, free: 6.332 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000151/0.5016, allocations: 91.97 kB / 0.5703 GB, free: 6.242 MB / 414.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.0005708/0.5021, allocations: 312 kB / 0.5706 GB, free: 5.93 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002309/0.5024, allocations: 106.7 kB / 0.5707 GB, free: 5.824 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005552/0.5079, allocations: 1.805 MB / 0.5725 GB, free: 4.047 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.259e-05/0.508, allocations: 12 kB / 0.5725 GB, free: 4.035 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.78e-06/0.508, allocations: 0 / 0.5725 GB, free: 4.035 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.341e-05/0.508, allocations: 6.641 kB / 0.5725 GB, free: 4.031 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001929/0.5099, allocations: 1.346 MB / 0.5738 GB, free: 2.648 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.293e-06/0.51, allocations: 2.688 kB / 0.5738 GB, free: 2.648 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008813/0.5109, allocations: 230.4 kB / 0.574 GB, free: 2.426 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002513/0.5134, allocations: 422 kB / 0.5744 GB, free: 2.02 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001023/0.5135, allocations: 43.97 kB / 0.5745 GB, free: 1.977 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004945/0.5185, allocations: 3.781 MB / 0.5782 GB, free: 13.94 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.5185, allocations: 2.688 kB / 0.5782 GB, free: 13.94 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006087/0.5246, allocations: 2.345 MB / 0.5805 GB, free: 11.57 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006971/0.5253, allocations: 287.7 kB / 0.5807 GB, free: 11.27 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001385/0.5254, allocations: 24 kB / 0.5808 GB, free: 11.25 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000635/0.5261, allocations: 31.92 kB / 0.5808 GB, free: 11.22 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002574/0.5264, allocations: 115.5 kB / 0.5809 GB, free: 11.11 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001021/0.5265, allocations: 47.98 kB / 0.5809 GB, free: 11.06 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0005877/0.5271, allocations: 479 kB / 0.5814 GB, free: 10.59 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5271, allocations: 0 / 0.5814 GB, free: 10.59 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002587/0.5297, allocations: 0.8276 MB / 0.5822 GB, free: 9.762 MB / 430.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.001753/0.5314, allocations: 0.9234 MB / 0.5831 GB, free: 8.969 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002807/0.5342, allocations: 1.674 MB / 0.5847 GB, free: 7.258 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.5343, allocations: 0 / 0.5847 GB, free: 7.258 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001425/0.5357, allocations: 0.9993 MB / 0.5857 GB, free: 6.211 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001239/0.5369, allocations: 239 kB / 0.5859 GB, free: 6.008 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004066/0.541, allocations: 2.432 MB / 0.5883 GB, free: 3.578 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006782/0.5417, allocations: 1.121 MB / 0.5894 GB, free: 2.441 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000556/0.5423, allocations: 240.8 kB / 0.5896 GB, free: 2.211 MB / 430.1 MB Notification: Performance of SimCode: time 1.062e-06/0.5423, allocations: 0 / 0.5896 GB, free: 2.211 MB / 430.1 MB Notification: Performance of Templates: time 0.04011/0.5824, allocations: 36.79 MB / 0.6256 GB, free: 13.89 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)