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: "" <> buildModelFMU(Chemical.Examples.EnzymeKinetics,fileNamePrefix="Chemical_Chemical_Examples_EnzymeKinetics",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.EnzymeKinetics,fileNamePrefix="Chemical_Chemical_Examples_EnzymeKinetics",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006513/0.006513, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001507/0.001507, allocations: 198.7 kB / 16.68 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.51/1.51, allocations: 222.9 MB / 240.4 MB, free: 4.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2299/0.2299, allocations: 15.32 MB / 305.9 MB, free: 15.24 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00202/0.00202, allocations: 59.91 kB / 424.7 MB, free: 13.66 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2743/0.2763, allocations: 53.61 MB / 478.3 MB, free: 25.6 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.03411/0.3105, allocations: 26.62 MB / 0.4931 GB, free: 8.164 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02148/0.332, allocations: 19.46 MB / 0.5121 GB, free: 4.629 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001194/0.3332, allocations: 19.88 kB / 0.5121 GB, free: 4.609 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001203/0.3344, allocations: 420.9 kB / 0.5125 GB, free: 4.195 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005882/0.3403, allocations: 1.637 MB / 0.5141 GB, free: 2.547 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00682/0.3471, allocations: 2.489 MB / 0.5165 GB, free: 44 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003098/0.3503, allocations: 1.974 MB / 0.5185 GB, free: 14.06 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001424/0.3517, allocations: 1.122 MB / 0.5196 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001168/0.3529, allocations: 0.9859 MB / 0.5205 GB, free: 11.92 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001517/0.3544, allocations: 1.11 MB / 0.5216 GB, free: 10.81 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002762/0.3547, allocations: 176 kB / 0.5218 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006431/0.3611, allocations: 2.161 MB / 0.5239 GB, free: 8.473 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000607/0.3618, allocations: 426.8 kB / 0.5243 GB, free: 8.055 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001151/0.3629, allocations: 0.8596 MB / 0.5251 GB, free: 7.191 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008772/0.3717, allocations: 4.128 MB / 0.5292 GB, free: 3.047 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3718, allocations: 0 / 0.5292 GB, free: 3.047 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3718, allocations: 0 / 0.5292 GB, free: 3.047 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.626e-05/0.3718, allocations: 0 / 0.5292 GB, free: 3.047 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.004441/0.3763, allocations: 2.253 MB / 0.5314 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/0.3763, allocations: 12.03 kB / 0.5314 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002558/0.3766, allocations: 194.6 kB / 0.5316 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001521/0.3781, allocations: 343.3 kB / 0.5319 GB, free: 192 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001397/0.3795, allocations: 0.8152 MB / 0.5327 GB, free: 15.33 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001752/0.3797, allocations: 158.6 kB / 0.5328 GB, free: 15.16 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002492/0.38, allocations: 136.3 kB / 0.533 GB, free: 15.03 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002974/0.3829, allocations: 1.716 MB / 0.5346 GB, free: 13.27 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.846e-05/0.383, allocations: 0 / 0.5346 GB, free: 13.27 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001485/0.3831, allocations: 56 kB / 0.5347 GB, free: 13.22 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.082e-05/0.3832, allocations: 35.94 kB / 0.5347 GB, free: 13.18 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003645/0.3868, allocations: 2.185 MB / 0.5369 GB, free: 10.99 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.009621/0.3965, allocations: 5.493 MB / 0.5422 GB, free: 5.277 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0054/0.4019, allocations: 3.221 MB / 0.5454 GB, free: 1.945 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001396/0.4033, allocations: 0.809 MB / 0.5462 GB, free: 1.133 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01045/0.4138, allocations: 7.009 MB / 0.553 GB, free: 9.352 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.032e-05/0.4138, allocations: 43.56 kB / 0.5531 GB, free: 9.301 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005104/0.4144, allocations: 131.1 kB / 0.5532 GB, free: 9.172 MB / 430.1 MB Notification: Performance of pre-optimization done (n=97): time 3.406e-06/0.4144, allocations: 0 / 0.5532 GB, free: 9.172 MB / 430.1 MB Notification: Performance of matching and sorting (n=116): time 0.01737/0.4318, allocations: 4.537 MB / 0.5576 GB, free: 4.535 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.271e-05/0.4319, allocations: 68.41 kB / 0.5577 GB, free: 4.457 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009946/0.4329, allocations: 0.7276 MB / 0.5584 GB, free: 3.719 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001009/0.433, allocations: 45.7 kB / 0.5584 GB, free: 3.668 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005108/0.4335, allocations: 0.6561 MB / 0.5591 GB, free: 3.004 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003988/0.4339, allocations: 432.3 kB / 0.5595 GB, free: 2.578 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004517/0.4343, allocations: 295.4 kB / 0.5598 GB, free: 2.281 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001877/0.4345, allocations: 357.9 kB / 0.5601 GB, free: 1.926 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008743/0.4354, allocations: 483.8 kB / 0.5606 GB, free: 1.453 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00135/0.4368, allocations: 0.9801 MB / 0.5615 GB, free: 260 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002446/0.4392, allocations: 1.581 MB / 0.5631 GB, free: 14.44 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.071e-05/0.4393, allocations: 4 kB / 0.5631 GB, free: 14.43 MB / 446.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.005864/0.4451, allocations: 2.003 MB / 0.565 GB, free: 12.41 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.078e-05/0.4452, allocations: 12 kB / 0.565 GB, free: 12.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.31e-05/0.4452, allocations: 16 kB / 0.5651 GB, free: 12.39 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002504/0.4477, allocations: 438.4 kB / 0.5655 GB, free: 11.95 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001447/0.4492, allocations: 375.4 kB / 0.5658 GB, free: 11.58 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005907/0.4551, allocations: 3.88 MB / 0.5696 GB, free: 7.438 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001209/0.4564, allocations: 48 kB / 0.5697 GB, free: 7.391 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001765/0.4566, allocations: 91.97 kB / 0.5698 GB, free: 7.301 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.0005867/0.4571, allocations: 325.2 kB / 0.5701 GB, free: 6.973 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002427/0.4574, allocations: 111.2 kB / 0.5702 GB, free: 6.863 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005635/0.463, allocations: 1.804 MB / 0.5719 GB, free: 5.039 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.676e-05/0.4631, allocations: 12 kB / 0.5719 GB, free: 5.027 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/0.4631, allocations: 4 kB / 0.5719 GB, free: 5.023 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.227e-05/0.4631, allocations: 3.984 kB / 0.5719 GB, free: 5.02 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00235/0.4655, allocations: 1.331 MB / 0.5732 GB, free: 3.621 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-05/0.4655, allocations: 3.938 kB / 0.5733 GB, free: 3.617 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009761/0.4665, allocations: 227.8 kB / 0.5735 GB, free: 3.395 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002448/0.469, allocations: 422.1 kB / 0.5739 GB, free: 2.973 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001416/0.4691, allocations: 47.97 kB / 0.5739 GB, free: 2.926 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005408/0.4745, allocations: 3.776 MB / 0.5776 GB, free: 14.87 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.362e-06/0.4746, allocations: 7.969 kB / 0.5776 GB, free: 14.86 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006507/0.4811, allocations: 2.352 MB / 0.5799 GB, free: 12.48 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005765/0.4817, allocations: 296.3 kB / 0.5802 GB, free: 12.17 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001552/0.4819, allocations: 23.94 kB / 0.5802 GB, free: 12.14 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006239/0.4825, allocations: 31.98 kB / 0.5802 GB, free: 12.11 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003132/0.4828, allocations: 108.8 kB / 0.5803 GB, free: 12 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001099/0.4829, allocations: 51.98 kB / 0.5804 GB, free: 11.95 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0006878/0.4836, allocations: 479 kB / 0.5809 GB, free: 11.48 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4836, allocations: 0 / 0.5809 GB, free: 11.48 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002621/0.4863, allocations: 0.8415 MB / 0.5817 GB, free: 10.64 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.008865/0.4952, allocations: 3.741 MB / 0.5853 GB, free: 6.844 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003491/0.4987, allocations: 1.67 MB / 0.587 GB, free: 5.129 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.4987, allocations: 0 / 0.587 GB, free: 5.129 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001786/0.5005, allocations: 1.001 MB / 0.5879 GB, free: 4.086 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001509/0.502, allocations: 230.3 kB / 0.5882 GB, free: 3.871 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0228/0.5249, allocations: 10.82 MB / 0.5987 GB, free: 8.426 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008624/0.5258, allocations: 1.125 MB / 0.5998 GB, free: 7.266 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001214/0.527, allocations: 288.9 kB / 0.6001 GB, free: 6.98 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009524/0.528, allocations: 0.5695 MB / 0.6007 GB, free: 6.41 MB / 478.1 MB Notification: Performance of SimCode: time 1.282e-06/0.528, allocations: 0 / 0.6007 GB, free: 6.41 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3458/0.8737, allocations: 38.73 MB / 0.6385 GB, free: 106.1 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.9/15.77, allocations: 7.531 kB / 0.6385 GB, free: 106.1 MB / 478.1 MB (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 & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.EnzymeKinetics_res.csv --start-time 0 --stop-time 199000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 79.6 Chemical_Chemical_Examples_EnzymeKinetics.fmu > Chemical_Chemical.Examples.EnzymeKinetics.pipe 2>&1)