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.004855/0.004855, allocations: 99.77 kB / 15.73 MB, free: 6.012 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.001291/0.001291, allocations: 193.6 kB / 16.67 MB, free: 5.93 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: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08367/0.08367, allocations: 15.3 MB / 305.8 MB, free: 15.4 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001814/0.001814, allocations: 75.83 kB / 424.7 MB, free: 11.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09426/0.09608, allocations: 53.61 MB / 478.3 MB, free: 6.285 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.03856/0.1347, allocations: 26.99 MB / 0.4934 GB, free: 11.38 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2052/0.3399, allocations: 19.44 MB / 0.5124 GB, free: 18.12 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000887/0.3408, allocations: 16.97 kB / 0.5124 GB, free: 18.12 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001249/0.3421, allocations: 417.7 kB / 0.5128 GB, free: 18.11 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004539/0.3466, allocations: 1.641 MB / 0.5144 GB, free: 17.63 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006185/0.3528, allocations: 2.485 MB / 0.5169 GB, free: 16.84 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003102/0.356, allocations: 1.971 MB / 0.5188 GB, free: 16.4 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00174/0.3577, allocations: 1.115 MB / 0.5199 GB, free: 16.12 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001688/0.3594, allocations: 0.9962 MB / 0.5209 GB, free: 15.79 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00183/0.3613, allocations: 1.107 MB / 0.5219 GB, free: 15.38 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003467/0.3616, allocations: 178 kB / 0.5221 GB, free: 15.38 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008334/0.37, allocations: 2.156 MB / 0.5242 GB, free: 14.86 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007073/0.3707, allocations: 434.7 kB / 0.5246 GB, free: 14.61 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001427/0.3721, allocations: 0.855 MB / 0.5255 GB, free: 14.12 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01069/0.3828, allocations: 4.13 MB / 0.5295 GB, free: 12.59 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.3829, allocations: 0 / 0.5295 GB, free: 12.59 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.3829, allocations: 0 / 0.5295 GB, free: 12.59 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.507e-05/0.3829, allocations: 0 / 0.5295 GB, free: 12.59 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.004029/0.387, allocations: 2.257 MB / 0.5317 GB, free: 11.22 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.387, allocations: 7.312 kB / 0.5317 GB, free: 11.22 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001854/0.3872, allocations: 194.7 kB / 0.5319 GB, free: 11.06 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001417/0.3886, allocations: 346.4 kB / 0.5322 GB, free: 10.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001068/0.3897, allocations: 0.8192 MB / 0.533 GB, free: 10.29 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001126/0.3898, allocations: 160.8 kB / 0.5332 GB, free: 10.17 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002158/0.39, allocations: 140.5 kB / 0.5333 GB, free: 10.12 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002365/0.3924, allocations: 1.713 MB / 0.535 GB, free: 9.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.866e-05/0.3925, allocations: 0 / 0.535 GB, free: 9.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001366/0.3926, allocations: 56.38 kB / 0.535 GB, free: 9.047 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.856e-05/0.3926, allocations: 31.41 kB / 0.5351 GB, free: 9.047 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002715/0.3953, allocations: 2.184 MB / 0.5372 GB, free: 8.094 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.007013/0.4024, allocations: 5.497 MB / 0.5426 GB, free: 3.492 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003936/0.4063, allocations: 3.223 MB / 0.5457 GB, free: 180 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001239/0.4076, allocations: 0.8194 MB / 0.5465 GB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01024/0.4178, allocations: 6.999 MB / 0.5534 GB, free: 7.637 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.094e-05/0.4179, allocations: 50.17 kB / 0.5534 GB, free: 7.582 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005274/0.4184, allocations: 128.7 kB / 0.5535 GB, free: 7.461 MB / 398.1 MB Notification: Performance of pre-optimization done (n=97): time 2.575e-06/0.4184, allocations: 0 / 0.5535 GB, free: 7.461 MB / 398.1 MB Notification: Performance of matching and sorting (n=116): time 0.0176/0.436, allocations: 4.53 MB / 0.5579 GB, free: 2.883 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.862e-05/0.4361, allocations: 60.41 kB / 0.558 GB, free: 2.812 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009755/0.4371, allocations: 0.738 MB / 0.5587 GB, free: 2.066 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001117/0.4372, allocations: 45.7 kB / 0.5588 GB, free: 2.016 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005043/0.4377, allocations: 0.664 MB / 0.5594 GB, free: 1.352 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003963/0.4381, allocations: 431.1 kB / 0.5598 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000441/0.4386, allocations: 291.5 kB / 0.5601 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001932/0.4388, allocations: 360.6 kB / 0.5604 GB, free: 292 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009023/0.4397, allocations: 479.8 kB / 0.5609 GB, free: 15.82 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00131/0.441, allocations: 0.9813 MB / 0.5619 GB, free: 14.63 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002406/0.4434, allocations: 1.579 MB / 0.5634 GB, free: 12.86 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.598e-06/0.4435, allocations: 4 kB / 0.5634 GB, free: 12.85 MB / 414.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.005835/0.4493, allocations: 2.003 MB / 0.5654 GB, free: 10.86 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.866e-05/0.4493, allocations: 12 kB / 0.5654 GB, free: 10.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.872e-05/0.4494, allocations: 23.98 kB / 0.5654 GB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002631/0.452, allocations: 435.1 kB / 0.5658 GB, free: 10.4 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001286/0.4533, allocations: 371.4 kB / 0.5662 GB, free: 10.04 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005955/0.4593, allocations: 3.88 MB / 0.57 GB, free: 5.918 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001189/0.4605, allocations: 51.98 kB / 0.57 GB, free: 5.867 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001554/0.4607, allocations: 86.61 kB / 0.5701 GB, free: 5.785 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.0005815/0.4613, allocations: 317.2 kB / 0.5704 GB, free: 5.465 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002401/0.4615, allocations: 111.3 kB / 0.5705 GB, free: 5.355 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005833/0.4673, allocations: 1.806 MB / 0.5723 GB, free: 3.582 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.245e-05/0.4674, allocations: 12 kB / 0.5723 GB, free: 3.57 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.584e-05/0.4674, allocations: 4 kB / 0.5723 GB, free: 3.566 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.979e-05/0.4674, allocations: 10.62 kB / 0.5723 GB, free: 3.559 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002057/0.4695, allocations: 1.335 MB / 0.5736 GB, free: 2.184 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.658e-06/0.4695, allocations: 0 / 0.5736 GB, free: 2.184 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009346/0.4704, allocations: 234.3 kB / 0.5738 GB, free: 1.957 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002569/0.473, allocations: 418.3 kB / 0.5742 GB, free: 1.555 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001505/0.4732, allocations: 47.97 kB / 0.5743 GB, free: 1.508 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00537/0.4786, allocations: 3.777 MB / 0.5779 GB, free: 13.48 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.263e-06/0.4786, allocations: 9.281 kB / 0.578 GB, free: 13.47 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006584/0.4852, allocations: 2.355 MB / 0.5803 GB, free: 11.09 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006704/0.4859, allocations: 288.3 kB / 0.5805 GB, free: 10.79 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001568/0.486, allocations: 24 kB / 0.5806 GB, free: 10.77 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006396/0.4867, allocations: 31.92 kB / 0.5806 GB, free: 10.74 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000338/0.487, allocations: 115.4 kB / 0.5807 GB, free: 10.62 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001132/0.4872, allocations: 51.97 kB / 0.5807 GB, free: 10.57 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0007262/0.4879, allocations: 479 kB / 0.5812 GB, free: 10.11 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.194e-06/0.4879, allocations: 0 / 0.5812 GB, free: 10.11 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002738/0.4907, allocations: 0.8376 MB / 0.582 GB, free: 9.266 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.008799/0.4995, allocations: 3.739 MB / 0.5857 GB, free: 5.629 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003036/0.5025, allocations: 1.674 MB / 0.5873 GB, free: 3.914 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.681e-06/0.5025, allocations: 8 kB / 0.5873 GB, free: 3.906 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001594/0.5041, allocations: 0.9954 MB / 0.5883 GB, free: 2.871 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001304/0.5055, allocations: 239 kB / 0.5885 GB, free: 2.672 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02106/0.5265, allocations: 10.8 MB / 0.5991 GB, free: 7.375 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007893/0.5274, allocations: 1.121 MB / 0.6002 GB, free: 6.234 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001002/0.5284, allocations: 298.5 kB / 0.6004 GB, free: 6.023 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008402/0.5292, allocations: 0.5734 MB / 0.601 GB, free: 5.449 MB / 446.1 MB Notification: Performance of SimCode: time 7.02e-07/0.5292, allocations: 0 / 0.601 GB, free: 5.449 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08268/0.6119, allocations: 38.75 MB / 0.6388 GB, free: 15.24 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.21/14.82, allocations: 14.73 kB / 0.6388 GB, free: 15.23 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 & /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)