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.006657/0.006657, allocations: 100.1 kB / 15.73 MB, free: 6.043 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.001297/0.001297, allocations: 185.4 kB / 16.67 MB, free: 5.977 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.381/1.381, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2019/0.2019, allocations: 15.33 MB / 305.9 MB, free: 15.28 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 67.89 kB / 424.7 MB, free: 13.59 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2755/0.2769, allocations: 53.6 MB / 478.3 MB, free: 25.66 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.03511/0.312, allocations: 26.39 MB / 0.4929 GB, free: 8.316 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0203/0.3323, allocations: 19.47 MB / 0.5119 GB, free: 4.766 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001303/0.3337, allocations: 15.88 kB / 0.5119 GB, free: 4.75 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001478/0.3352, allocations: 416.9 kB / 0.5123 GB, free: 4.34 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005177/0.3404, allocations: 1.645 MB / 0.5139 GB, free: 2.684 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006636/0.347, allocations: 2.481 MB / 0.5163 GB, free: 192 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002862/0.3499, allocations: 1.974 MB / 0.5183 GB, free: 14.2 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001592/0.3515, allocations: 1.115 MB / 0.5193 GB, free: 13.06 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001441/0.353, allocations: 0.9937 MB / 0.5203 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001816/0.3548, allocations: 1.118 MB / 0.5214 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005406/0.3554, allocations: 176 kB / 0.5216 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006643/0.362, allocations: 2.157 MB / 0.5237 GB, free: 8.613 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007057/0.3628, allocations: 430.8 kB / 0.5241 GB, free: 8.191 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001413/0.3642, allocations: 0.8596 MB / 0.5249 GB, free: 7.328 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009296/0.3735, allocations: 4.115 MB / 0.5289 GB, free: 3.199 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.3735, allocations: 0 / 0.5289 GB, free: 3.199 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3736, allocations: 0 / 0.5289 GB, free: 3.199 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.252e-05/0.3736, allocations: 0 / 0.5289 GB, free: 3.199 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.005106/0.3787, allocations: 2.192 MB / 0.5311 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.3788, allocations: 11.97 kB / 0.5311 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003186/0.3791, allocations: 194.6 kB / 0.5313 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001583/0.3807, allocations: 338.5 kB / 0.5316 GB, free: 420 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001451/0.3822, allocations: 0.807 MB / 0.5324 GB, free: 15.56 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001605/0.3824, allocations: 158.6 kB / 0.5325 GB, free: 15.39 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002769/0.3827, allocations: 140.3 kB / 0.5327 GB, free: 15.25 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002963/0.3856, allocations: 1.716 MB / 0.5344 GB, free: 13.5 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.791e-05/0.3857, allocations: 0 / 0.5344 GB, free: 13.5 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001495/0.3858, allocations: 52 kB / 0.5344 GB, free: 13.45 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.56e-05/0.3859, allocations: 32 kB / 0.5344 GB, free: 13.41 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003436/0.3893, allocations: 2.185 MB / 0.5366 GB, free: 11.22 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.009259/0.3986, allocations: 5.491 MB / 0.5419 GB, free: 5.516 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005148/0.4038, allocations: 3.225 MB / 0.5451 GB, free: 2.18 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001233/0.405, allocations: 0.8168 MB / 0.5459 GB, free: 1.359 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00973/0.4148, allocations: 6.989 MB / 0.5527 GB, free: 9.598 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.233e-05/0.4148, allocations: 43.56 kB / 0.5527 GB, free: 9.547 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005553/0.4154, allocations: 130.8 kB / 0.5529 GB, free: 9.418 MB / 430.1 MB Notification: Performance of pre-optimization done (n=97): time 4.077e-06/0.4154, allocations: 0 / 0.5529 GB, free: 9.418 MB / 430.1 MB Notification: Performance of matching and sorting (n=116): time 0.01859/0.434, allocations: 4.515 MB / 0.5573 GB, free: 4.801 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.409e-05/0.4341, allocations: 60.41 kB / 0.5573 GB, free: 4.73 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009508/0.4351, allocations: 0.7276 MB / 0.558 GB, free: 3.992 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001202/0.4352, allocations: 45.7 kB / 0.5581 GB, free: 3.941 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004324/0.4356, allocations: 0.6421 MB / 0.5587 GB, free: 3.289 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003718/0.436, allocations: 414.1 kB / 0.5591 GB, free: 2.879 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004386/0.4365, allocations: 291.3 kB / 0.5594 GB, free: 2.586 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.4366, allocations: 353.9 kB / 0.5597 GB, free: 2.234 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008425/0.4375, allocations: 483.8 kB / 0.5602 GB, free: 1.762 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001175/0.4387, allocations: 0.9801 MB / 0.5611 GB, free: 0.5625 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002197/0.4409, allocations: 1.585 MB / 0.5627 GB, free: 14.74 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.107e-05/0.4409, allocations: 4 kB / 0.5627 GB, free: 14.74 MB / 446.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.005892/0.4468, allocations: 1.99 MB / 0.5646 GB, free: 12.73 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.897e-05/0.4468, allocations: 13.25 kB / 0.5647 GB, free: 12.72 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.715e-05/0.4469, allocations: 20 kB / 0.5647 GB, free: 12.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002758/0.4496, allocations: 442.4 kB / 0.5651 GB, free: 12.26 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00125/0.4509, allocations: 379.4 kB / 0.5655 GB, free: 11.89 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005661/0.4566, allocations: 3.868 MB / 0.5692 GB, free: 7.754 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001074/0.4577, allocations: 52 kB / 0.5693 GB, free: 7.703 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001934/0.4579, allocations: 87.97 kB / 0.5694 GB, free: 7.617 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.0005753/0.4585, allocations: 321.3 kB / 0.5697 GB, free: 7.293 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002964/0.4588, allocations: 110.6 kB / 0.5698 GB, free: 7.184 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005852/0.4646, allocations: 1.807 MB / 0.5715 GB, free: 5.355 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.455e-05/0.4647, allocations: 16 kB / 0.5716 GB, free: 5.34 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.635e-06/0.4647, allocations: 4 kB / 0.5716 GB, free: 5.336 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.696e-05/0.4647, allocations: 7.969 kB / 0.5716 GB, free: 5.328 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001916/0.4666, allocations: 1.327 MB / 0.5729 GB, free: 3.934 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.108e-05/0.4666, allocations: 3.938 kB / 0.5729 GB, free: 3.93 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009284/0.4676, allocations: 235.8 kB / 0.5731 GB, free: 3.699 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002715/0.4703, allocations: 418.1 kB / 0.5735 GB, free: 3.281 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001268/0.4704, allocations: 43.97 kB / 0.5735 GB, free: 3.238 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005185/0.4756, allocations: 3.775 MB / 0.5772 GB, free: 15.18 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.4757, allocations: 3.938 kB / 0.5772 GB, free: 15.18 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006269/0.4819, allocations: 2.356 MB / 0.5795 GB, free: 12.79 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005236/0.4825, allocations: 279.6 kB / 0.5798 GB, free: 12.5 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002013/0.4827, allocations: 31.94 kB / 0.5798 GB, free: 12.46 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006996/0.4834, allocations: 27.98 kB / 0.5799 GB, free: 12.44 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002373/0.4837, allocations: 108.8 kB / 0.58 GB, free: 12.33 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001067/0.4838, allocations: 59.97 kB / 0.58 GB, free: 12.27 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0006052/0.4844, allocations: 475 kB / 0.5805 GB, free: 11.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4844, allocations: 0 / 0.5805 GB, free: 11.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002413/0.4868, allocations: 0.8275 MB / 0.5813 GB, free: 10.98 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.009106/0.4959, allocations: 3.715 MB / 0.5849 GB, free: 7.207 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003321/0.4993, allocations: 1.67 MB / 0.5865 GB, free: 5.492 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.65e-06/0.4993, allocations: 4 kB / 0.5865 GB, free: 5.488 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001793/0.5011, allocations: 0.9928 MB / 0.5875 GB, free: 4.453 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001738/0.5029, allocations: 243.3 kB / 0.5877 GB, free: 4.223 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02296/0.5259, allocations: 10.73 MB / 0.5982 GB, free: 8.863 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008594/0.5268, allocations: 1.136 MB / 0.5993 GB, free: 7.691 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001099/0.5279, allocations: 296.9 kB / 0.5996 GB, free: 7.398 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000842/0.5288, allocations: 0.5773 MB / 0.6002 GB, free: 6.82 MB / 478.1 MB Notification: Performance of SimCode: time 1.062e-06/0.5288, allocations: 0 / 0.6002 GB, free: 6.82 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.31/0.8388, allocations: 39.29 MB / 0.6386 GB, free: 105.9 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.07/14.9, allocations: 17.34 kB / 0.6386 GB, free: 105.9 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 & /home/hudson/saved_omc/OMSimulator/install/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)