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.006486/0.006487, allocations: 101.6 kB / 15.73 MB, free: 6.031 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.001486/0.001486, allocations: 193.2 kB / 16.67 MB, free: 5.969 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.495/1.495, allocations: 222.9 MB / 240.4 MB, free: 4.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.3674/0.3674, allocations: 15.32 MB / 305.9 MB, free: 15.27 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001505/0.001505, allocations: 67.89 kB / 425.2 MB, free: 13.11 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3637/0.3653, allocations: 53.6 MB / 478.8 MB, free: 25.71 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.03817/0.4035, allocations: 26.41 MB / 0.4934 GB, free: 8.273 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02294/0.4264, allocations: 19.46 MB / 0.5124 GB, free: 4.738 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001786/0.4282, allocations: 15.88 kB / 0.5124 GB, free: 4.723 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001352/0.4296, allocations: 416.9 kB / 0.5128 GB, free: 4.312 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005172/0.4348, allocations: 1.641 MB / 0.5144 GB, free: 2.66 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007351/0.4422, allocations: 2.485 MB / 0.5168 GB, free: 164 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003422/0.4456, allocations: 1.981 MB / 0.5187 GB, free: 14.17 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0014/0.447, allocations: 1.111 MB / 0.5198 GB, free: 13.03 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001084/0.4481, allocations: 0.9976 MB / 0.5208 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001403/0.4495, allocations: 1.121 MB / 0.5219 GB, free: 10.91 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002283/0.4498, allocations: 172 kB / 0.5221 GB, free: 10.74 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008325/0.4581, allocations: 2.153 MB / 0.5242 GB, free: 8.582 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006202/0.4587, allocations: 426.8 kB / 0.5246 GB, free: 8.164 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001262/0.46, allocations: 0.8634 MB / 0.5254 GB, free: 7.297 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01332/0.4733, allocations: 4.111 MB / 0.5294 GB, free: 3.172 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.664e-06/0.4734, allocations: 0 / 0.5294 GB, free: 3.172 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.4734, allocations: 3.938 kB / 0.5294 GB, free: 3.168 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.662e-05/0.4734, allocations: 0 / 0.5294 GB, free: 3.168 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.004929/0.4784, allocations: 2.195 MB / 0.5316 GB, free: 0.918 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.628e-05/0.4784, allocations: 8.031 kB / 0.5316 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001476/0.4799, allocations: 334.5 kB / 0.5319 GB, free: 0.582 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001654/0.4816, allocations: 0.8147 MB / 0.5327 GB, free: 15.72 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001594/0.4818, allocations: 158.6 kB / 0.5329 GB, free: 15.55 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002425/0.482, allocations: 144.3 kB / 0.533 GB, free: 15.41 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002913/0.4849, allocations: 1.709 MB / 0.5347 GB, free: 13.66 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.592e-05/0.485, allocations: 0 / 0.5347 GB, free: 13.66 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001427/0.4851, allocations: 56 kB / 0.5347 GB, free: 13.61 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.816e-05/0.4851, allocations: 35.94 kB / 0.5347 GB, free: 13.57 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003694/0.4888, allocations: 2.181 MB / 0.5369 GB, free: 11.39 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.01033/0.4992, allocations: 5.484 MB / 0.5422 GB, free: 5.684 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004953/0.5042, allocations: 3.217 MB / 0.5454 GB, free: 2.355 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001206/0.5054, allocations: 0.8207 MB / 0.5462 GB, free: 1.531 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009905/0.5153, allocations: 6.985 MB / 0.553 GB, free: 9.773 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.554e-05/0.5154, allocations: 51.44 kB / 0.553 GB, free: 9.715 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005493/0.5159, allocations: 122.9 kB / 0.5532 GB, free: 9.594 MB / 430.1 MB Notification: Performance of pre-optimization done (n=97): time 4.188e-06/0.5159, allocations: 3.984 kB / 0.5532 GB, free: 9.59 MB / 430.1 MB Notification: Performance of matching and sorting (n=116): time 0.01779/0.5337, allocations: 4.515 MB / 0.5576 GB, free: 4.973 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.053e-05/0.5338, allocations: 64.39 kB / 0.5576 GB, free: 4.898 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009269/0.5348, allocations: 0.7276 MB / 0.5583 GB, free: 4.16 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.698e-05/0.5349, allocations: 45.7 kB / 0.5584 GB, free: 4.109 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000402/0.5353, allocations: 0.646 MB / 0.559 GB, free: 3.453 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003293/0.5356, allocations: 410.1 kB / 0.5594 GB, free: 3.047 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004133/0.536, allocations: 295.3 kB / 0.5597 GB, free: 2.75 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000181/0.5362, allocations: 361.9 kB / 0.56 GB, free: 2.391 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008406/0.5371, allocations: 479.8 kB / 0.5605 GB, free: 1.922 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001273/0.5383, allocations: 0.9762 MB / 0.5614 GB, free: 0.7266 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002177/0.5405, allocations: 1.585 MB / 0.563 GB, free: 14.91 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.514e-06/0.5406, allocations: 4 kB / 0.563 GB, free: 14.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.005637/0.5462, allocations: 1.986 MB / 0.5649 GB, free: 12.9 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.108e-05/0.5463, allocations: 14.34 kB / 0.565 GB, free: 12.89 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.195e-05/0.5463, allocations: 20 kB / 0.565 GB, free: 12.87 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002629/0.5489, allocations: 442.5 kB / 0.5654 GB, free: 12.43 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00139/0.5503, allocations: 379.3 kB / 0.5658 GB, free: 12.05 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00541/0.5558, allocations: 3.872 MB / 0.5695 GB, free: 7.914 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001283/0.5571, allocations: 48 kB / 0.5696 GB, free: 7.867 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001587/0.5572, allocations: 92.03 kB / 0.5697 GB, free: 7.777 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.0006168/0.5579, allocations: 321.2 kB / 0.57 GB, free: 7.453 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000267/0.5581, allocations: 106.7 kB / 0.5701 GB, free: 7.348 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005609/0.5638, allocations: 1.803 MB / 0.5718 GB, free: 5.527 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.471e-05/0.5638, allocations: 12 kB / 0.5719 GB, free: 5.516 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.718e-06/0.5638, allocations: 4 kB / 0.5719 GB, free: 5.512 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-05/0.5638, allocations: 3.984 kB / 0.5719 GB, free: 5.508 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002314/0.5662, allocations: 1.331 MB / 0.5732 GB, free: 4.109 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.882e-06/0.5662, allocations: 0 / 0.5732 GB, free: 4.109 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008862/0.5671, allocations: 231.8 kB / 0.5734 GB, free: 3.883 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002424/0.5695, allocations: 426.1 kB / 0.5738 GB, free: 3.457 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001185/0.5696, allocations: 47.97 kB / 0.5738 GB, free: 3.41 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005176/0.5748, allocations: 3.779 MB / 0.5775 GB, free: 15.35 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.5749, allocations: 3.938 kB / 0.5775 GB, free: 15.35 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00618/0.5811, allocations: 2.348 MB / 0.5798 GB, free: 12.96 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007576/0.5818, allocations: 287.6 kB / 0.5801 GB, free: 12.66 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001375/0.582, allocations: 24 kB / 0.5801 GB, free: 12.64 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006153/0.5826, allocations: 31.92 kB / 0.5801 GB, free: 12.61 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003427/0.583, allocations: 112.8 kB / 0.5803 GB, free: 12.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001118/0.5831, allocations: 47.98 kB / 0.5803 GB, free: 12.45 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00075/0.5838, allocations: 479 kB / 0.5808 GB, free: 11.98 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5838, allocations: 0 / 0.5808 GB, free: 11.98 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002832/0.5867, allocations: 0.8314 MB / 0.5816 GB, free: 11.15 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.001945/0.5886, allocations: 0.9196 MB / 0.5825 GB, free: 10.22 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003196/0.5918, allocations: 1.673 MB / 0.5841 GB, free: 8.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.173e-06/0.5919, allocations: 4 kB / 0.5841 GB, free: 8.496 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001558/0.5934, allocations: 0.985 MB / 0.5851 GB, free: 7.461 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001403/0.5949, allocations: 243.1 kB / 0.5853 GB, free: 7.23 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00472/0.5996, allocations: 2.389 MB / 0.5876 GB, free: 4.801 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006854/0.6003, allocations: 1.129 MB / 0.5887 GB, free: 3.641 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00102/0.6013, allocations: 300.9 kB / 0.589 GB, free: 3.344 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004112/0.6017, allocations: 187.3 kB / 0.5892 GB, free: 3.16 MB / 462.1 MB Notification: Performance of SimCode: time 8.82e-07/0.6018, allocations: 0 / 0.5892 GB, free: 3.16 MB / 462.1 MB Notification: Performance of Templates: time 0.345/0.9468, allocations: 29.01 MB / 0.6175 GB, free: 115.9 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)