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/Chemical 1.4.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/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/Chemical 1.4.0-master/package.mo): time 0.0778/0.0778, allocations: 15.26 MB / 22.73 MB, free: 0.9492 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000951/0.000951, allocations: 188.9 kB / 27.52 MB, free: 6.109 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.256/1.256, allocations: 221.5 MB / 253.7 MB, free: 10.35 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008784/0.0008784, allocations: 100.1 kB / 308.8 MB, free: 10.46 MB / 250.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 1.353e-05/1.352e-05, allocations: 2.938 kB / 369.7 MB, free: 53.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07143/0.07146, allocations: 54.64 MB / 424.3 MB, free: 13.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2919/0.3634, allocations: 99.45 MB / 0.5115 GB, free: 12.37 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001471/0.3636, allocations: 67.11 kB / 0.5115 GB, free: 12.37 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:4721:7-4721:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System solution.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Solution. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System P.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$P. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System S.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$S. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System liquidWater.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$liquidWater. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System E.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$E. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System ES.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$ES. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. Notification: Performance of FrontEnd - DAE generated: time 0.1172/0.4808, allocations: 56.73 MB / 0.567 GB, free: 9.297 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.4809, allocations: 3.938 kB / 0.567 GB, free: 9.293 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.206e-05/0.4809, allocations: 36 kB / 0.567 GB, free: 9.258 MB / 378.7 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.003201/0.4841, allocations: 1.85 MB / 0.5688 GB, free: 7.367 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.4842, allocations: 12.02 kB / 0.5688 GB, free: 7.355 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001209/0.4854, allocations: 417 kB / 0.5692 GB, free: 6.945 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001743/0.4871, allocations: 1.096 MB / 0.5703 GB, free: 5.828 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001057/0.4873, allocations: 122 kB / 0.5704 GB, free: 5.695 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001691/0.4874, allocations: 83.91 kB / 0.5705 GB, free: 5.613 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003953/0.4914, allocations: 3.589 MB / 0.574 GB, free: 2.02 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002577/0.494, allocations: 2.024 MB / 0.576 GB, free: 15.95 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.247e-05/0.494, allocations: 0 / 0.576 GB, free: 15.95 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.557e-05/0.4941, allocations: 0 / 0.576 GB, free: 15.95 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.424e-05/0.4941, allocations: 32 kB / 0.576 GB, free: 15.92 MB / 394.7 MB Warning: The model contains alias variables with conflicting start and/or 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.01015/0.5043, allocations: 7.611 MB / 0.5834 GB, free: 8.188 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005344/0.5097, allocations: 4.063 MB / 0.5874 GB, free: 4.027 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001427/0.5111, allocations: 1.371 MB / 0.5887 GB, free: 2.66 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005445/0.5117, allocations: 407.3 kB / 0.5891 GB, free: 2.273 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.531e-05/0.5117, allocations: 55.88 kB / 0.5892 GB, free: 2.207 MB / 394.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008277/0.5125, allocations: 134.4 kB / 0.5893 GB, free: 2.078 MB / 394.7 MB Notification: Performance of pre-optimization done (n=163): time 4.058e-06/0.5125, allocations: 0 / 0.5893 GB, free: 2.078 MB / 394.7 MB Notification: Performance of matching and sorting (n=214): time 0.03284/0.5454, allocations: 11.03 MB / 0.6001 GB, free: 7.027 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.102e-05/0.5455, allocations: 77.39 kB / 0.6001 GB, free: 6.938 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008869/0.5464, allocations: 0.7276 MB / 0.6009 GB, free: 6.207 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001316/0.5465, allocations: 25.7 kB / 0.6009 GB, free: 6.176 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003387/0.5468, allocations: 0.5522 MB / 0.6014 GB, free: 5.613 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005411/0.5474, allocations: 0.6887 MB / 0.6021 GB, free: 4.914 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001053/0.5475, allocations: 0 / 0.6021 GB, free: 4.914 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.5477, allocations: 377.9 kB / 0.6024 GB, free: 4.539 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001723/0.5494, allocations: 1.523 MB / 0.6039 GB, free: 3.016 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001874/0.5513, allocations: 1.728 MB / 0.6056 GB, free: 1.234 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003707/0.555, allocations: 1.948 MB / 0.6075 GB, free: 15.29 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.221e-06/0.555, allocations: 0 / 0.6075 GB, free: 15.29 MB / 426.7 MB Notification: Performance of matching and sorting (n=247) (initialization): time 0.009398/0.5644, allocations: 4.424 MB / 0.6118 GB, free: 10.84 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.5644, allocations: 4 kB / 0.6118 GB, free: 10.83 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.356e-05/0.5645, allocations: 4 kB / 0.6119 GB, free: 10.83 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003132/0.5676, allocations: 0.6436 MB / 0.6125 GB, free: 10.18 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001581/0.5692, allocations: 427.3 kB / 0.6129 GB, free: 9.758 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005279/0.5745, allocations: 4.317 MB / 0.6171 GB, free: 5.184 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00208/0.5766, allocations: 195.6 kB / 0.6173 GB, free: 4.992 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001964/0.5768, allocations: 107.9 kB / 0.6174 GB, free: 4.887 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: E.solution.n:DUMMY_STATE(flow=false min = 0.0 max = 0.0 unit = "mol" ) "Amount of the solution" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: E.solution.I:VARIABLE(flow=false min = 0.0 max = 0.0 unit = "1" ) "Mole fraction based ionic strength of the solution" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (220): * Single equations (assignments): 214 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 2 {1 10,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003253/0.5771, allocations: 142 kB / 0.6175 GB, free: 4.742 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01182/0.5889, allocations: 4.786 MB / 0.6222 GB, free: 15.94 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00029/0.5892, allocations: 142.2 kB / 0.6223 GB, free: 15.8 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01284/0.6021, allocations: 5.073 MB / 0.6273 GB, free: 10.69 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01294/0.6151, allocations: 4.598 MB / 0.6318 GB, free: 6.074 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.6151, allocations: 4 kB / 0.6318 GB, free: 6.07 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.393e-05/0.6151, allocations: 15.95 kB / 0.6318 GB, free: 6.055 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01768/0.6328, allocations: 10.35 MB / 0.6419 GB, free: 11.56 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.274e-05/0.6328, allocations: 8 kB / 0.6419 GB, free: 11.55 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001359/0.6342, allocations: 387.4 kB / 0.6423 GB, free: 11.17 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005909/0.6401, allocations: 1.32 MB / 0.6436 GB, free: 9.84 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001474/0.6403, allocations: 43.94 kB / 0.6436 GB, free: 9.797 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01038/0.6507, allocations: 7.336 MB / 0.6508 GB, free: 2.207 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005427/0.6561, allocations: 2.455 MB / 0.6532 GB, free: 15.63 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01419/0.6703, allocations: 7.557 MB / 0.6606 GB, free: 7.684 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009059/0.6713, allocations: 451 kB / 0.661 GB, free: 7.223 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002116/0.6715, allocations: 27.92 kB / 0.661 GB, free: 7.195 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001432/0.6729, allocations: 111.8 kB / 0.6611 GB, free: 7.086 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000344/0.6733, allocations: 217.4 kB / 0.6613 GB, free: 6.871 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001424/0.6734, allocations: 95.92 kB / 0.6614 GB, free: 6.777 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.000632/0.6741, allocations: 0.5655 MB / 0.662 GB, free: 6.211 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6741, allocations: 0 / 0.662 GB, free: 6.211 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003106/0.6772, allocations: 1.269 MB / 0.6632 GB, free: 4.941 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 40 * Number of states: 6 ($STATESET1.x[6],$STATESET1.x[5],$STATESET1.x[4],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (210): * Single equations (assignments): 206 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 2 {1 10,7 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.2105/0.8877, allocations: 11.72 MB / 0.6747 GB, free: 124.3 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.004657/0.8924, allocations: 3.788 MB / 0.6784 GB, free: 123.9 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.502e-06/0.8924, allocations: 2.125 kB / 0.6784 GB, free: 123.9 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003035/0.8955, allocations: 2.431 MB / 0.6807 GB, free: 123.6 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001877/0.8974, allocations: 419 kB / 0.6811 GB, free: 123.6 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00474/0.9021, allocations: 3.913 MB / 0.685 GB, free: 122.5 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006218/0.9027, allocations: 1.36 MB / 0.6863 GB, free: 121.8 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.00109/0.9038, allocations: 336.5 kB / 0.6866 GB, free: 121.8 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008898/0.9047, allocations: 0.716 MB / 0.6873 GB, free: 121.8 MB / 474.7 MB Notification: Performance of SimCode: time 3.91e-07/0.9048, allocations: 0 / 0.6873 GB, free: 121.8 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0673/0.9721, allocations: 57.06 MB / 0.743 GB, free: 98.84 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001101/0.9722, allocations: 123.8 kB / 0.7431 GB, free: 98.64 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.391/4.363, allocations: 0 / 0.7431 GB, free: 98.64 MB / 474.7 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_EnzymeKinetics_fmu --startTime=0 --stopTime=199000 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_EnzymeKinetics.fmu > Chemical_Chemical.Examples.EnzymeKinetics.pipe 2>&1)