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.006196/0.006196, allocations: 97 kB / 15.73 MB, free: 5.949 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.002098/0.002098, allocations: 192.8 kB / 16.67 MB, free: 5.871 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.531/1.531, allocations: 222.9 MB / 240.4 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08136/0.08136, allocations: 15.31 MB / 305.8 MB, free: 15.39 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001174/0.001174, allocations: 59.91 kB / 424.7 MB, free: 11.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0936/0.09479, allocations: 53.62 MB / 478.3 MB, free: 6.289 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.03531/0.1301, allocations: 26.48 MB / 0.4929 GB, free: 11.89 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2363/0.3664, allocations: 19.44 MB / 0.5119 GB, free: 17.71 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001151/0.3676, allocations: 16.88 kB / 0.5119 GB, free: 17.71 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001212/0.3689, allocations: 426.8 kB / 0.5123 GB, free: 17.7 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004971/0.3738, allocations: 1.649 MB / 0.514 GB, free: 17.31 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007472/0.3813, allocations: 2.509 MB / 0.5164 GB, free: 16.51 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003276/0.3846, allocations: 1.975 MB / 0.5183 GB, free: 16.08 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001657/0.3863, allocations: 1.108 MB / 0.5194 GB, free: 15.93 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001391/0.3877, allocations: 0.9997 MB / 0.5204 GB, free: 15.59 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002058/0.3898, allocations: 1.111 MB / 0.5215 GB, free: 15.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003892/0.3902, allocations: 172.8 kB / 0.5216 GB, free: 15.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008539/0.3987, allocations: 2.158 MB / 0.5237 GB, free: 14.66 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007413/0.3995, allocations: 433.5 kB / 0.5242 GB, free: 14.41 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001301/0.4008, allocations: 0.8559 MB / 0.525 GB, free: 13.92 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01179/0.4126, allocations: 4.133 MB / 0.529 GB, free: 12.39 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.397e-06/0.4127, allocations: 2.656 kB / 0.529 GB, free: 12.39 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.4127, allocations: 1.156 kB / 0.529 GB, free: 12.39 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.154e-05/0.4128, allocations: 2.625 kB / 0.529 GB, free: 12.39 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.0065/0.4193, allocations: 2.246 MB / 0.5312 GB, free: 11.07 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.649e-05/0.4193, allocations: 8.844 kB / 0.5312 GB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002255/0.4196, allocations: 198.1 kB / 0.5314 GB, free: 10.91 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001572/0.4212, allocations: 347.9 kB / 0.5318 GB, free: 10.76 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001436/0.4226, allocations: 0.8128 MB / 0.5326 GB, free: 10.13 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001247/0.4227, allocations: 163.5 kB / 0.5327 GB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002525/0.423, allocations: 136.4 kB / 0.5328 GB, free: 9.973 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002569/0.4256, allocations: 1.717 MB / 0.5345 GB, free: 8.934 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.855e-05/0.4256, allocations: 2.594 kB / 0.5345 GB, free: 8.934 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001409/0.4258, allocations: 50.91 kB / 0.5346 GB, free: 8.895 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.731e-05/0.4258, allocations: 32.84 kB / 0.5346 GB, free: 8.895 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002838/0.4286, allocations: 2.185 MB / 0.5367 GB, free: 7.938 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.008256/0.4369, allocations: 5.491 MB / 0.5421 GB, free: 3.488 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004331/0.4413, allocations: 3.231 MB / 0.5453 GB, free: 168 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001208/0.4425, allocations: 0.8129 MB / 0.546 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009533/0.452, allocations: 6.999 MB / 0.5529 GB, free: 7.633 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.286e-05/0.4521, allocations: 47.5 kB / 0.5529 GB, free: 7.578 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006257/0.4527, allocations: 126.3 kB / 0.553 GB, free: 7.457 MB / 398.1 MB Notification: Performance of pre-optimization done (n=97): time 3.527e-06/0.4528, allocations: 2.656 kB / 0.5531 GB, free: 7.457 MB / 398.1 MB Notification: Performance of matching and sorting (n=116): time 0.01751/0.4703, allocations: 4.535 MB / 0.5575 GB, free: 2.875 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.036e-05/0.4703, allocations: 64.41 kB / 0.5575 GB, free: 2.801 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008558/0.4712, allocations: 0.7355 MB / 0.5583 GB, free: 2.055 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.673e-05/0.4713, allocations: 41.7 kB / 0.5583 GB, free: 2.008 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003872/0.4717, allocations: 0.665 MB / 0.5589 GB, free: 1.344 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003234/0.472, allocations: 429.8 kB / 0.5594 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004096/0.4725, allocations: 302.8 kB / 0.5596 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.4726, allocations: 349.9 kB / 0.56 GB, free: 288 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000817/0.4734, allocations: 483.8 kB / 0.5604 GB, free: 15.81 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001132/0.4746, allocations: 0.9849 MB / 0.5614 GB, free: 14.62 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002061/0.4766, allocations: 1.578 MB / 0.5629 GB, free: 12.85 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.324e-06/0.4766, allocations: 4 kB / 0.5629 GB, free: 12.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.006151/0.4828, allocations: 2.001 MB / 0.5649 GB, free: 10.85 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.431e-05/0.4829, allocations: 12 kB / 0.5649 GB, free: 10.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.611e-05/0.4829, allocations: 16 kB / 0.5649 GB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002728/0.4856, allocations: 444 kB / 0.5654 GB, free: 10.39 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001298/0.4869, allocations: 371.4 kB / 0.5657 GB, free: 10.03 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005658/0.4926, allocations: 3.872 MB / 0.5695 GB, free: 5.914 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001321/0.494, allocations: 56 kB / 0.5695 GB, free: 5.859 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001571/0.4941, allocations: 83.97 kB / 0.5696 GB, free: 5.777 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.0005399/0.4947, allocations: 315.9 kB / 0.5699 GB, free: 5.461 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000237/0.4949, allocations: 111.3 kB / 0.57 GB, free: 5.352 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005485/0.5004, allocations: 1.813 MB / 0.5718 GB, free: 3.57 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.193e-05/0.5004, allocations: 12 kB / 0.5718 GB, free: 3.559 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.5004, allocations: 0 / 0.5718 GB, free: 3.559 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.341e-05/0.5005, allocations: 3.984 kB / 0.5718 GB, free: 3.555 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001774/0.5022, allocations: 1.337 MB / 0.5731 GB, free: 2.184 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/0.5023, allocations: 7.984 kB / 0.5731 GB, free: 2.176 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009014/0.5032, allocations: 234.2 kB / 0.5734 GB, free: 1.949 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002447/0.5056, allocations: 424.9 kB / 0.5738 GB, free: 1.543 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.726e-05/0.5057, allocations: 39.97 kB / 0.5738 GB, free: 1.504 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004902/0.5106, allocations: 3.781 MB / 0.5775 GB, free: 13.47 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.578e-06/0.5107, allocations: 6.625 kB / 0.5775 GB, free: 13.46 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006067/0.5167, allocations: 2.355 MB / 0.5798 GB, free: 11.09 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006504/0.5174, allocations: 294.9 kB / 0.5801 GB, free: 10.79 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001632/0.5176, allocations: 28 kB / 0.5801 GB, free: 10.76 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000634/0.5182, allocations: 31.92 kB / 0.5801 GB, free: 10.73 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002711/0.5185, allocations: 111.4 kB / 0.5802 GB, free: 10.62 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.994e-05/0.5186, allocations: 51.98 kB / 0.5803 GB, free: 10.57 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0006074/0.5192, allocations: 482.9 kB / 0.5807 GB, free: 10.09 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5192, allocations: 0 / 0.5807 GB, free: 10.09 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002818/0.5221, allocations: 0.8376 MB / 0.5816 GB, free: 9.254 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.00848/0.5306, allocations: 3.731 MB / 0.5852 GB, free: 5.621 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00284/0.5334, allocations: 1.672 MB / 0.5868 GB, free: 3.906 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.5334, allocations: 0 / 0.5868 GB, free: 3.906 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001436/0.5349, allocations: 0.9993 MB / 0.5878 GB, free: 2.867 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001271/0.5362, allocations: 233.7 kB / 0.588 GB, free: 2.668 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02004/0.5562, allocations: 10.8 MB / 0.5986 GB, free: 7.371 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006591/0.5569, allocations: 1.129 MB / 0.5997 GB, free: 6.223 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009546/0.5579, allocations: 296.4 kB / 0.6 GB, free: 6.012 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007587/0.5587, allocations: 0.576 MB / 0.6005 GB, free: 5.438 MB / 446.1 MB Notification: Performance of SimCode: time 1.072e-06/0.5587, allocations: 0 / 0.6005 GB, free: 5.438 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08009/0.6388, allocations: 38.74 MB / 0.6384 GB, free: 15.22 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.09/14.73, allocations: 14.81 kB / 0.6384 GB, free: 15.21 MB / 494.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)