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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.1108/0.1108, allocations: 15.26 MB / 22.54 MB, free: 2.82 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.001132/0.001132, allocations: 178.2 kB / 27.31 MB, free: 4.219 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.197/1.197, allocations: 221.4 MB / 253.3 MB, free: 10.66 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.0008572/0.0008575, allocations: 84.61 kB / 308.4 MB, free: 10.6 MB / 250.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.2156/0.2165, allocations: 60.73 MB / 369.1 MB, free: 54.24 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08067/0.2972, allocations: 54.64 MB / 423.8 MB, free: 14.23 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2761/0.5734, allocations: 99.38 MB / 0.5109 GB, free: 8.199 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000136/0.5736, allocations: 69.81 kB / 0.5109 GB, free: 8.199 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: 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.1413/0.7148, allocations: 58.7 MB / 0.5683 GB, free: 2.137 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.325e-05/0.7149, allocations: 8 kB / 0.5683 GB, free: 2.129 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002257/0.7172, allocations: 425.2 kB / 0.5687 GB, free: 1.711 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002573/0.7198, allocations: 1.113 MB / 0.5698 GB, free: 0.5781 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001157/0.7199, allocations: 114 kB / 0.5699 GB, free: 464 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003119/0.7202, allocations: 87.91 kB / 0.57 GB, free: 376 kB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004706/0.725, allocations: 3.605 MB / 0.5735 GB, free: 12.76 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003202/0.7282, allocations: 2.032 MB / 0.5755 GB, free: 10.69 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.725e-05/0.7282, allocations: 0 / 0.5755 GB, free: 10.69 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001063/0.7283, allocations: 0 / 0.5755 GB, free: 10.69 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.91e-05/0.7284, allocations: 32 kB / 0.5755 GB, free: 10.66 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01186/0.7402, allocations: 7.714 MB / 0.583 GB, free: 2.805 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00312/0.7434, allocations: 2.856 MB / 0.5858 GB, free: 15.95 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001452/0.7448, allocations: 1.363 MB / 0.5872 GB, free: 14.59 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005892/0.7454, allocations: 422.6 kB / 0.5876 GB, free: 14.18 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.192e-05/0.7455, allocations: 43.88 kB / 0.5876 GB, free: 14.13 MB / 410.7 MB Notification: Performance of pre-optimization done (n=163): time 3.938e-06/0.7455, allocations: 0 / 0.5876 GB, free: 14.13 MB / 410.7 MB Notification: Performance of matching and sorting (n=214): time 0.03713/0.7826, allocations: 11.18 MB / 0.5985 GB, free: 2.949 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.542e-05/0.7827, allocations: 73.41 kB / 0.5986 GB, free: 2.863 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00111/0.7838, allocations: 0.7314 MB / 0.5993 GB, free: 2.125 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002817/0.7841, allocations: 29.69 kB / 0.5993 GB, free: 2.09 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000241/0.7844, allocations: 413.4 kB / 0.5997 GB, free: 1.676 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007453/0.7851, allocations: 0.6811 MB / 0.6004 GB, free: 0.9844 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001422/0.7853, allocations: 0 / 0.6004 GB, free: 0.9844 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001767/0.7855, allocations: 377.9 kB / 0.6007 GB, free: 0.6094 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002107/0.7876, allocations: 1.537 MB / 0.6022 GB, free: 15.07 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002223/0.7898, allocations: 1.744 MB / 0.604 GB, free: 13.28 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004456/0.7943, allocations: 1.991 MB / 0.6059 GB, free: 11.29 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.007e-06/0.7943, allocations: 4 kB / 0.6059 GB, free: 11.28 MB / 426.7 MB Notification: Performance of matching and sorting (n=247) (initialization): time 0.01121/0.8055, allocations: 4.533 MB / 0.6103 GB, free: 6.723 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.8056, allocations: 4 kB / 0.6103 GB, free: 6.719 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.532e-05/0.8056, allocations: 4 kB / 0.6103 GB, free: 6.715 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003597/0.8092, allocations: 0.6476 MB / 0.611 GB, free: 6.055 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001931/0.8111, allocations: 435.3 kB / 0.6114 GB, free: 5.629 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005902/0.817, allocations: 4.265 MB / 0.6155 GB, free: 1.109 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002307/0.8194, allocations: 147.7 kB / 0.6157 GB, free: 0.9648 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000297/0.8197, allocations: 103.9 kB / 0.6158 GB, free: 0.8633 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.0003722/0.82, allocations: 139.3 kB / 0.6159 GB, free: 0.7227 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003169/0.8204, allocations: 142.2 kB / 0.6161 GB, free: 0.582 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01435/0.8347, allocations: 5.17 MB / 0.6211 GB, free: 11.38 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0129/0.8476, allocations: 4.649 MB / 0.6256 GB, free: 6.715 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.415e-05/0.8477, allocations: 0 / 0.6256 GB, free: 6.715 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.832e-05/0.8477, allocations: 11.95 kB / 0.6257 GB, free: 6.703 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02024/0.868, allocations: 10.37 MB / 0.6358 GB, free: 12.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.514e-05/0.868, allocations: 8 kB / 0.6358 GB, free: 12.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001649/0.8697, allocations: 396.2 kB / 0.6362 GB, free: 11.81 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006896/0.8766, allocations: 1.302 MB / 0.6374 GB, free: 10.5 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000201/0.8768, allocations: 55.92 kB / 0.6375 GB, free: 10.44 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01176/0.8886, allocations: 7.193 MB / 0.6445 GB, free: 2.992 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006322/0.8949, allocations: 2.392 MB / 0.6469 GB, free: 488 kB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01666/0.9116, allocations: 7.641 MB / 0.6543 GB, free: 8.453 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.1452/1.057, allocations: 10.25 MB / 0.6643 GB, free: 158.4 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001057/1.058, allocations: 453.3 kB / 0.6648 GB, free: 158.3 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000432/1.058, allocations: 18.72 kB / 0.6648 GB, free: 158.3 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001763/1.06, allocations: 80.67 kB / 0.6648 GB, free: 158.3 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002927/1.061, allocations: 165 kB / 0.665 GB, free: 158.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001882/1.061, allocations: 97.89 kB / 0.6651 GB, free: 158.3 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.000642/1.061, allocations: 0.5663 MB / 0.6657 GB, free: 158.2 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004096/1.065, allocations: 1.352 MB / 0.667 GB, free: 158.2 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.001933/1.067, allocations: 1.053 MB / 0.668 GB, free: 158.2 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.00522/1.073, allocations: 3.876 MB / 0.6718 GB, free: 157.8 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.58e-06/1.073, allocations: 7.188 kB / 0.6718 GB, free: 157.8 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003153/1.076, allocations: 2.352 MB / 0.6741 GB, free: 157.5 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002065/1.078, allocations: 406.6 kB / 0.6745 GB, free: 157.5 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004963/1.083, allocations: 3.505 MB / 0.6779 GB, free: 156.6 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00125/1.084, allocations: 1.578 MB / 0.6794 GB, free: 155.8 MB / 474.7 MB Notification: Performance of SimCode: time 5.11e-07/1.084, allocations: 0 / 0.6794 GB, free: 155.8 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)